关于第8章demo_crf_ner.py

hankcs老师好,不好意思打扰了,
我在运行第8章demo_crf_ner.py的时候,训练成功了,但提示错误信息:

iter=202 terr=1.8025141586989235E-4 serr=0.004847447961220416 act=2180584 obj=3557.5335070105125 diff=5.119288864802773E-5
Done!
Traceback (most recent call last):
File “/Users/bqwu/NLP/pyhanlp-master/tests/book/ch08/demo_crf_ner.py”, line 27, in
test(recognizer)
File “/Users/bqwu/NLP/pyhanlp-master/tests/book/ch08/demo_hmm_ner.py”, line 30, in test
ner_array = recognizer.recognize(word_array, pos_array) # 序列标注
jpype._jclass.NullPointerException: None

不知道是哪里的问题?谢谢

感谢反馈,改版后需要load一下:

谢谢维护!