【发布时间】:2015-10-19 15:17:47
【问题描述】:
我想标记一个句子,但保持预定义的单词完整。例如
"i went to university of abc and had a wonderful time there!"
进入
["i", "went", "to", "university of abc", "and", "had", "a", "wonderful", "time", "there", "!"]
因为"university of abc"是预定义的词。
我在任何 NLTK 标记器中都找不到这样的参数或控件。有什么办法可以破解来实现这一目标?谢谢!
【问题讨论】: