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

2 vues (au cours des 30 derniers jours)
Salad Box
Salad Box le 10 Juin 2019
Modifié(e) : Salad Box le 10 Juin 2019
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?

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by