How to identify adjectives or adverbs?

蓝咒 提交于 2019-12-08 09:17:50

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/12229661/how-to-identify-adjectives-or-adverbs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!