演示内容:文档的向量化.py

fgdfwgsdh 13 0 PY 2020-07-25 12:07:28

# -*- coding: utf-8 -*- """ 演示内容:文档的向量化 """ from sklearn.feature_extraction.text import CountVectorizer corpus = [ 'Jobs was the chairman of Apple Inc., and he was very famous', 'I like to use apple computer', 'And I also like to eat apple' ] #未经停用词过滤的文档向量化 vectorizer =CountVectorizer

用户评论
请输入评论内容
评分:
暂无评论