DoubleArrayTrieSegment出错

在学习第二章时,运行代码 demo_dat_segment.py 和demo_acdat_segment.py,只要是加载了DoubleArrayTrieSegment这个类,便会报错:
Traceback (most recent call last): File "demo_dat_segment.py", line 12, in <module> segment = DoubleArrayTrieSegment() File "/home/face/.conda/envs/tensorflow1.11/lib/python3.6/site-packages/pyhanlp/__init__.py", line 172, in __call__ proxy = self._proxy() File "/home/face/.conda/envs/tensorflow1.11/lib/python3.6/site-packages/jpype/_jobject.py", line 95, in __init__ jv = self.__class__.__javaclass__.newInstance(*args) jpype._jclass.IndexOutOfBoundsException: Index: 0, Size: 0
有没有小伙伴遇到相同的问题,求讨论解决。

无法复现,建议检查自己的数据是否下载解压正确,或者删除pyhanlp/static/data/dictionary/custom/CustomDictionary.txt.bin以便重新生成缓存。