字典干预时出现错误
Created by: luzm3
用户词典:
货币资金 n 100000000 年末 TIME 13601 货币资金年末额 n 10000000000000000
测试代码
test_interventer.py
from Interventer import Query, Interventer
query = Query({'word': ['货币', '资金', '年末额'], 'tag': ['n', 'n', 'n']})
i = Interventer("unigram.dict", "user.dict")
result = i.run(query)
print(result)
Interventer.py为lac目录下62730a1a1357db5e1964cf3209c030ed.py
解决方法
测试后,成功解决该bug