问题描述
Stanford NLP,演示,提供如下输出:
The Stanford NLP, demo'd here, gives an output like this:
Colorless/JJ green/JJ ideas/NNS sleep/VBP furiously/RB ./.
语音标签的含义是什么?我无法找到正式名单。它是斯坦福自己的系统,还是使用通用标签? (例如,什么是 JJ
?)
What do the Part of Speech tags mean? I am unable to find an official list. Is it Stanford's own system, or are they using universal tags? (What is JJ
, for instance?)
此外,当我在翻译句子时,寻找名词例如,我最终做了一些事情,比如查看标签 .contains('N')
。这感觉很弱。有没有更好的方法以编程方式搜索某个词性?
Also, when I am iterating through the sentences, looking for nouns, for instance, I end up doing something like checking to see if the tag .contains('N')
. This feels pretty weak. Is there a better way to programmatically search for a certain part of speech?
推荐答案
。请查看 ps。
JJ是形容词。 NNS是名词,复数。 VBP是动词现在时态。 RB是副词。
JJ is adjective. NNS is noun, plural. VBP is verb present tense. RB is adverb.
这是英语。对于中国人来说,它是宾夕法尼亚中国树库。而对于德语来说,它是NEGRA语料库。
That's for english. For chinese, it's the Penn Chinese Treebank. And for german it's the NEGRA corpus.
- CC协调连接
- CD基数
- DT确定者
- EX存在于那里
- FW外来词
- IN介词或从属连词
- JJ形容词
- JJR形容词,比较
- JJS形容词,最高级
- LS列表项目标记
- MD模态
- NN名词,单数或质量
- NNS名词,复数
- NNP专有名词,单数
- NNPS专有名词,复数
- PDT Predeterminer
- POS Possessive结束
- PRP人称代词
- PRP $占有代词
- RB副词
- RBR副词,比较
- RBS副词,最高级
- RP粒子
- SYM符号
- TO
- UH Interjection
- VB Verb,基本形式
- VBD动词,过去时
- VBG动词,动名词或现在分词
- VBN动词,过去分词
- VBP动词,非第三人称单数礼物
- VBZ Verb,第三人称单数礼物
- WDT Whdeterminer
- WP Whpronoun
- WP $ Possessive whpronoun
- WRB Whadverb
- CC Coordinating conjunction
- CD Cardinal number
- DT Determiner
- EX Existential there
- FW Foreign word
- IN Preposition or subordinating conjunction
- JJ Adjective
- JJR Adjective, comparative
- JJS Adjective, superlative
- LS List item marker
- MD Modal
- NN Noun, singular or mass
- NNS Noun, plural
- NNP Proper noun, singular
- NNPS Proper noun, plural
- PDT Predeterminer
- POS Possessive ending
- PRP Personal pronoun
- PRP$ Possessive pronoun
- RB Adverb
- RBR Adverb, comparative
- RBS Adverb, superlative
- RP Particle
- SYM Symbol
- TO to
- UH Interjection
- VB Verb, base form
- VBD Verb, past tense
- VBG Verb, gerund or present participle
- VBN Verb, past participle
- VBP Verb, non3rd person singular present
- VBZ Verb, 3rd person singular present
- WDT Whdeterminer
- WP Whpronoun
- WP$ Possessive whpronoun
- WRB Whadverb
这篇关于Java Stanford NLP:部分语音标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!