【发布时间】:2018-10-01 01:00:03
【问题描述】:
使用 NLTK 获取以下唯一词频的代码。
Seq Sentence 1 Let's try to be Good.2 Being good doesn't make sense.3 Good is always good.
输出:{'good':3, 'let':1, 'try':1, 'to':1, 'be':1, 'being':1, 'doesn':1, 't':1, 'make':1, 'sense':1, 'is':1, 'always':1, '.':3, ''':2, 's':1}
【问题讨论】: