何博士:
您好!我在运行第三章代码的时候出现如下报错:
Traceback (most recent call last):
File “D:/code/anaconda/pyhanlp-master/tests/book/ch04/doctor_hmm.py”, line 85, in
for vec in trained_model.emission_probability:
AttributeError: ‘com.hankcs.hanlp.model.hmm.FirstOrderHiddenMarkovM’ object has no attribute
‘emission_probability’
把这段代码注释掉,还会下面的trained_model.transition_probability等也会报类似错误