Open Miaotxy opened 5 years ago
(prob, state) = max((V[len(obs) - 1][y], y) for y in 'ES')
应该是这样才对吧?
https://github.com/ustcdane/annotated_jieba/blob/master/jieba/finalseg/__init__.py
如果分词为短句子的话没问题,但是一旦是一个段落,就会出错
Traceback (most recent call last):
File "D:/code/python_test/test/start.py", line 11, in
分词的时候最后的两个状态只可能是s或者e啊,为什么源代码中还出现了m状态啥的。