如何识别形容词或副词? [英] How to identify adjectives or adverbs?

查看:119
本文介绍了如何识别形容词或副词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是NLP的新手....是否有任何API或方法可以从句子中识别动词,形容词或副词? 我在项目中需要它吗?

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?

推荐答案

您将需要 Part-语音Tagger (POSTagger).这确定了句子中每个单词的作用. Wikipedia拥有NLP工具包的优秀列表,并且它们几乎都具有POSTaggers.

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.

如果您的材料是普通的书面英语,那么POSTaggers会做的很好.如果口语性很强(例如在短信中)或异常(例如行话),情况可能会更糟.请注意,对于专业语言(我从事化学工作),您可能还需要使用分词器来确定单词"token"在哪里.

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.

您提到情感分析".这需要做很多工作,但是绝对需要在系统中使用POSTagger.您还提到了语义分析-为此,您可能需要语义词典.但是,请从POSTagger开始,并使用常见的句子进行练习.

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.

这篇关于如何识别形容词或副词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆