Extract all nouns from a string

Possible Duplicate:
Extracting Nouns from Noun Phase to NLP

Does anyone have examples of how to extract all nouns from a string using Python NLTK ?

For example, I have this line: "I like tomatoes and salad." I want to create a method that returns Tomatoes and Salad.

If not in Python, does anyone know of any other solution?

+3
source share
2 answers

NLTK , this ; , , , , NN; . , , I like.

, , . 95% . , WordNet .

+1

adlib Bash, Princetons, . - python, , wordnets.

Linux - Dave Taylor adlib.

0

All Articles