How to parse noun and adjective words from an array of texts
1 次查看(过去 30 天)
显示 更早的评论
Hi
I have an array (n x 1) of strings. See example below.
'I thought about illness'
'I think I associated it with fresh or bright'
'I thought about ice and winter'
For each line/row of strings, I would like to only take the noun and adjective words.
For instance, the first line will be 'illness';
second line will be 'fresh', 'bright';
third line will be 'ice', 'winter'.
- How to do that?
- How to store those nouns and adjectives?
- In this example, all the noun and adjective words have only been mentioned once, what if some words been mentioned more than once in different rows? How do I count how many times one word has been mentioned?
This work is for generating a word cloud later.
Please can you help?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!