我想通过将“new”一词添加到我的字典中来避免将“new”和“term”这两个词分开。我尝试了ws.bigram_counts['new zealand'] = 1.08e9,但收到错误
AttributeError: module 'wordsegment' has no attribute 'bigram_counts'1.08e9是在谷歌上搜索“新西兰”的次数
谢谢
发布于 2020-10-22 09:58:41
试试ws.BIGRAMS['new zealand'] = 1.08e9
https://stackoverflow.com/questions/64472953
复制相似问题