how to find most common words in text by matlab
古いコメントを表示
how to tag POS on nouns and verbs in MATLAB, Is it related to regular expressions? I know that regular expressions find a pattern in a text, but I want to find the most common words in texts and tag POS on them( I mean the words are nouns or verbs) and then exchange that POS and make an unfamiliar pair of words. how can I find the most common words in texts by MATLAB?is there any solution for that or I should use another software?
採用された回答
その他の回答 (2 件)
Sarah Palfreyman
2018 年 4 月 30 日
編集済み: Sarah Palfreyman
2018 年 4 月 30 日
0 投票
2 件のコメント
IORUNDU GABRIEL
2018 年 5 月 16 日
Which version of matlab is the least that supports the Text analytic toolbox?
Rik
2018 年 5 月 16 日
R2017b
Charmaine Tan
2018 年 11 月 26 日
0 投票
Hi, after finding my topkwords (most frequent words), how can I plot a histogram of these?
2 件のコメント
Christopher Creutzig
2018 年 11 月 26 日
txt = extractFileText('sonnets.txt');
td = tokenizedDocument(lower(txt));
td = erasePunctuation(td);
bow = bagOfWords(td);
top = topkwords(bow,20);
bar(top.Count)
set(gca,'XTick',1:size(top,1),'XTickLabel',top.Word,'XTickLabelRotation',45)

(In general, it's a good idea not to ask a new question as an “answer,” but to open a new question instead. It helps other people searching MATLAB Answers in the future.)
Charmaine Tan
2018 年 11 月 26 日
Noted, I'll do that. Thanks a lot!
カテゴリ
ヘルプ センター および File Exchange で Language Support についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!