hanlp segment
使用本地 /home/pi/.local/lib/python3.7/site-packages/pyhanlp/static/data-for-1.8.3.zip, 忽略 https://file.hankcs.com/hanlp/data-for-1.7.5.zip
解压 data.zip...
Invalid maximum heap size: -Xmx8g
The specified size exceeds the maximum representable size.
Traceback (most recent call last):
File "/home/pi/.local/bin/hanlp", line 6, in <module>
from pyhanlp.main import main
File "/home/pi/.local/lib/python3.7/site-packages/pyhanlp/__init__.py", line 149, in <module>
_start_jvm_for_hanlp()
File "/home/pi/.local/lib/python3.7/site-packages/pyhanlp/__init__.py", line 136, in _start_jvm_for_hanlp
HANLP_JVM_XMX, convertStrings=True)
File "/home/pi/.local/lib/python3.7/site-packages/jpype/_core.py", line 219, in startJVM
_jpype.startup(jvmpath, tuple(args), ignoreUnrecognized, convertStrings)
RuntimeError: Unable to start JVM
at loadJVM(native/common/jp_env.cpp:169)
at loadJVM(native/common/jp_env.cpp:179)
at startup(native/python/pyjp_module.cpp:159)
JVM 又出事儿啦。