NLTK的词性[转]

原文出处:http://blog.csdn.net/heyongluoyao8/article/details/43731743

NOUN n,VERB v ,ADJ a, ADV r, ADJ_SAT s
NOUN: [(’s’, ”), (‘ses’, ‘s’), (‘ves’, ‘f’), (‘xes’, ‘x’),
(‘zes’, ‘z’), (‘ches’, ‘ch’), (‘shes’, ‘sh’),
(‘men’, ‘man’), (‘ies’, ‘y’)],
VERB: [(’s’, ”), (‘ies’, ‘y’), (‘es’, ‘e’), (‘es’, ”),
(‘ed’, ‘e’), (‘ed’, ”), (‘ing’, ‘e’), (‘ing’, ”)],
ADJ: [(‘er’, ”), (‘est’, ”), (‘er’, ‘e’), (‘est’, ‘e’)],
ADV: [],
ADJ_SAT:[(‘er’, ”), (‘est’, ”), (‘er’, ‘e’), (‘est’, ‘e’)]
pos_tag(word_tokenize(“John’s big idea isn’t all that bad.”)) # doctest: +SKIP
[(‘John’, ‘NNP’), (“‘s”, ‘POS’), (‘big’, ‘JJ’), (‘idea’, ‘NN’), (‘is’,
‘VBZ’), (“n’t”, ‘RB’), (‘all’, ‘DT’), (‘that’, ‘DT’), (‘bad’, ‘JJ’),
(‘.’, ‘.’)]
1. CC Coordinating conjunction 连接词
2. CD Cardinal number 基数词
3. DT Determiner 限定词(如this,that,these,those,such,不定限定词:no,some,any,each,every,enough,either,neither,all,both,half,several,many,much,(a) few,(a) little,other,another.
4. EX Existential there 存在句
5. FW Foreign word 外来词
6. IN Preposition or subordinating conjunction 介词或从属连词
7. JJ Adjective 形容词或序数词
8. JJR Adjective, comparative 形容词比较级
9. JJS Adjective, superlative 形容词最高级
10. LS List item marker 列表标示
11. MD Modal 情态助动词
12. NN Noun, singular or mass 常用名词 单数形式
13. NNS Noun, plural 常用名词 复数形式
14. NNP Proper noun, singular 专有名词,单数形式
15. NNPS Proper noun, plural 专有名词,复数形式
16. PDT Predeterminer 前位限定词
17. POS Possessive ending 所有格结束词
18. PRP Personal pronoun 人称代词
19. PRP$ Possessive pronoun 所有格代名词
20. RB Adverb 副词
21. RBR Adverb, comparative 副词比较级
22. RBS Adverb, superlative 副词最高级
23. RP Particle 小品词
24. SYM Symbol 符号
25. TO to 作为介词或不定式格式
26. UH Interjection 感叹词
27. VB Verb, base form 动词基本形式
28. VBD Verb, past tense 动词过去式
29. VBG Verb, gerund or present participle 动名词和现在分词
30. VBN Verb, past participle 过去分词
31. VBP Verb, non-3rd person singular present 动词非第三人称单数
32. VBZ Verb, 3rd person singular present 动词第三人称单数
33. WDT Wh-determiner 限定词(如关系限定词:whose,which.疑问限定词:what,which,whose.)
34. WP Wh-pronoun 代词(who whose which)
35. WP$ Possessive wh-pronoun 所有格代词
36. WRB Wh-adverb 疑问代词(how where when)

reference:
http://www.nltk.org/book/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值