How to parse noun and adjective words from an array of texts

조회 수: 3 (최근 30일)
Salad Box
Salad Box 2019년 6월 10일
편집: Salad Box 2019년 6월 10일
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'.
  1. How to do that?
  2. How to store those nouns and adjectives?
  3. 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개)

카테고리

Help CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by