korean:mecab:python_mk_tfidf
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
korean:mecab:python_mk_tfidf [2021/11/11 23:45] – [TF-IDFの計算と上位10語の表示] yoshi | korean:mecab:python_mk_tfidf [2021/11/12 19:38] (現在) – [TF-IDFの計算と上位10語の表示] yoshi | ||
---|---|---|---|
行 89: | 行 89: | ||
ここから後は,[[korean: | ここから後は,[[korean: | ||
- | <wrap info> | + | <wrap info> |
<code python> | <code python> | ||
# モデルを作成 | # モデルを作成 | ||
- | vectorizer = TfidfVectorizer(smooth_idf=False, | + | vectorizer = TfidfVectorizer(smooth_idf=False, |
values = vectorizer.fit_transform(docs).toarray() | values = vectorizer.fit_transform(docs).toarray() | ||
feature_names = vectorizer.get_feature_names_out() | feature_names = vectorizer.get_feature_names_out() |
korean/mecab/python_mk_tfidf.1636641923.txt.gz · 最終更新: 2021/11/11 23:45 by yoshi