TF-IDF 行列はどのように作成するのでしょうか?
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 4 Mar 2021
Answered: MathWorks Support Team
on 4 Mar 2021
TF-IDF 行列は自動作成か、また、作成するためには、統計的なルールなどの知識は必要か、教えてください。
*ウェビナー「今日から始める!AI x テキストマイニング」からの質問です。
Accepted Answer
MathWorks Support Team
on 4 Mar 2021
TF-IDF行列の作成に関しては、順に関数を実行することで作成が可能です。textDataという変数名でテキストデータがあった際の、TF-IDF行列作成フローは下記ものです。
documents = tokenizedDocument(textData); % テキストのトークン
bag = bagOfWords(documents); % Bag-of-Wordsの作成
M = tfidf(bag); % TF-IDF行列の作成
以下のリンク先からも関連する例題をご覧いただけます。
・tfidf 関数
0 Comments
More Answers (0)
See Also
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!