Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# encoding: utf-8
print 'Content-Type: text/html; charset=UTF-8\n\n'
print "<html><body>"
import os
#os.chdir("/Users/tomoki/Sites/VisualizeYahooSamples")
import sys,os
import cgi
#encoding:utf8
#commenttext = uni_text.decode('unicode_escape')
import json
import os
from ast import literal_eval
import re
import MeCab
import unicodedata
import sys
import ngram
#encoding:utf8
import os
from ast import literal_eval
import re
import MeCab
import unicodedata
import sys
import ngram
#encoding:utf-8
from gensim.models import word2vec
import numpy as np
import json
import os
from ast import literal_eval
import re
import sys
import MeCab
from collections import defaultdict
#encoding:utf-8
from gensim.models import word2vec
import numpy as np
import json
import os
from ast import literal_eval
import re
import sys
import MeCab
from collections import defaultdict
#encoding:utf-8
from gensim.models import word2vec
import numpy as np
import json
import os
from ast import literal_eval
import re
import sys
import MeCab
from collections import defaultdict
altgraph (0.10.2)
bdist-mpkg (0.5.0)
beautifulsoup4 (4.3.2)
bonjour-py (0.3)
boto (2.38.0)
altgraph (0.10.2)
bdist-mpkg (0.5.0)
bonjour-py (0.3)
boto (2.38.0)
bz2file (0.98)
Cython (0.23.1)
gensim (0.10.1)
macholib (1.5.1)
matplotlib (1.3.1)
mecab-python (0.996)
# -*- encoding: utf-8 -*-
import os
import csv
import re
def main():
#入力フォルダ名
pth = 'head'
#出力ファイル名