我想通過將術(shù)語添加到我的字典中來避免將“新西蘭”詞段分隔為兩個單詞“新”和“新西蘭”。我嘗試過ws.bigram_counts['new zealand'] = 1.08e9 但收到錯誤AttributeError: module 'wordsegment' has no attribute 'bigram_counts'1.08e9 是 Google 上搜索“新西蘭”的次數(shù)謝謝
添加回答
舉報
0/150
提交
取消