tfidf = transformer.fit_transform(vectorizer.fit_transform(corpus)) # word = vectorizer.get_feature_names() #tf-idf,w[i][j]jitf-idf weight = tfidf.toarray() # print 'Features length: ' + str(len(word)) resName = "BHTfidf_Result.txt" result = codecs.open(resName, 'w', 'utf-...