Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

环境都配置好了还是有问题不知如何解决 #2

Open
qingwan123 opened this issue Jul 3, 2024 · 0 comments
Open

环境都配置好了还是有问题不知如何解决 #2

qingwan123 opened this issue Jul 3, 2024 · 0 comments

Comments

@qingwan123
Copy link

报错

七月 03, 2024 12:11:46 下午 com.hankcs.hanlp.corpus.io.ByteArrayFileStream createByteArrayFileStream
警告: java.io.FileNotFoundException: \home\dream\miniconda3\envs\py37\lib\python3.7\site-packages\pyhanlp\static\data\model\perceptron\large\cws.bin (系统找不到指定的路径。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at com.hankcs.hanlp.corpus.io.ByteArrayFileStream.createByteArrayFileStream(ByteArrayFileStream.java:39)
at com.hankcs.hanlp.corpus.io.ByteArrayStream.createByteArrayStream(ByteArrayStream.java:38)
at com.hankcs.hanlp.model.perceptron.model.LinearModel.load(LinearModel.java:387)
at com.hankcs.hanlp.model.perceptron.model.LinearModel.(LinearModel.java:65)
at com.hankcs.hanlp.model.perceptron.PerceptronLexicalAnalyzer.(PerceptronLexicalAnalyzer.java:70)

Traceback (most recent call last):
File "rel.py", line 369, in
model = hanlp(custom_dict=True)
File "rel.py", line 34, in init
self.PLAnalyzer = _PLAnalyzer(
File "C:\Python38\lib\site-packages\jpype_jobject.py", line 95, in init
jv = self.class.javaclass.newInstance(*args)
jpype._jclass.IOException: /home/dream/miniconda3/envs/py37/lib/python3.7/site-packages/pyhanlp/static/data/model/perceptron/large/cws.bin 加载失败

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant