在任何给定文本中查找名词和名词短语。
noun-hound的Python项目详细描述
说明
从任何给定的文本中提取名词和名词短语。
安装
pip install noun_hound
用法
>>>fromnoun_houndimportNounHound>>>noun_hound=NounHound()>>>noun_hound.process('''Long time Pythoneer Tim Peters succinctly channels the BDFL's ... guiding principles for Python's design into 20 aphorisms, only 19 ... of which have been written down.'''){u'noun_phrases':[u'Long time Pythoneer Tim Peters',u"Python's design",u"BDFL's",u'guiding principles',u'20 aphorisms',u'channels'],u'nouns':[u'Pythoneer',u"Python's",u'Peters',u"BDFL's",u'Tim',u'principles',u'aphorisms',u'channels',u'design',u'time']}
版权所有
版权所有(c)2015 David Lettier。
许可证
有关许可证信息,请参见Apache License Version 2.0。