korean:mecab:python_mk_tfidf
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
korean:mecab:python_mk_tfidf [2021/11/11 23:48] – [TF-IDFの計算と上位10語の表示] yoshi | korean:mecab:python_mk_tfidf [2021/11/12 19:38] (現在) – [TF-IDFの計算と上位10語の表示] yoshi | ||
---|---|---|---|
行 93: | 行 93: | ||
<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.1636642096.txt.gz · 最終更新: 2021/11/11 23:48 by yoshi