![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/630265/image.png)
Text Analytics Toolboxにおけるword cloud の使い方
1 回表示 (過去 30 日間)
古いコメントを表示
Text Analytics Toolbox を使用してString配列をインプットデータとしてwordcloud を実行しています.
wordcloud(["まちづくり";"街";"作る"])
を実行すると,添付画像のように「まち」と「づくり」が分離するのですが,どうすれば「まちづくり」と連続して可視化できますか?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/630040/image.png)
0 件のコメント
採用された回答
Megumi Fukuda
2021 年 5 月 25 日
wordcloud(categorical(["まちづくり";"街";"作る"]))
としていただけると、"まちづくり"が一語として表示されると思います。頻度も計算してくれるので、これが一番使いやすいかな?と思います。
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/630265/image.png)
wordcloud(categorical(["まちづくり";"街";"作る"; "作る"; "まち"; "街"]))
なども試してみると挙動がよくわかると思います。
さらに、wordcloud(words,sizeData)として、
wordcloud(["まちづくり";"街";"作る"], [1; 1; 1])
など、wordsの要素とそのサイズを明示的に指定するやり方もあります。
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Display and Presentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!