答案在这里:http://www.tuicool.com/articles/U3uiiu
http://scikit-learn.org/stable/modules/feature_extraction.html#text-feature-extraction