Reputation: 359
I am quite novice to NLP....Is there any API or a way in which i could identify verb or adjective or adverbs from a sentence? I need it in a project?
Upvotes: -2
Views: 1807
Reputation: 38063
You will need a Part-of-speech Tagger (POSTagger). This identifies the role of every word in the sentence. Wikipedia has an excellent list of NLP toolkits, and they will almost all have POSTaggers.
If your material is normal written English the POSTaggers will do well. If it's very colloquial (e.g. on Text Messages) or very unusual (e.g jargon) it may do worse. Note that for specialized language (I do chemistry) you may also need a tokenizer to work out where the word tokens are.
You mention "sentiment analysis". This is a lot more work but will absolutely need a POSTagger in the system. You also mention semantic analysis - for this you may need semantic lexicons. But start with the POSTagger and practice with common sentences.
Upvotes: 2