-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
配置文件无法加载 #783
Comments
首先,default.dic格式有问题,可以看下default.dic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Java项目结构,项目名称叫b
Java
----Demo.java
resource
----library.properties
----library
--------default.dic
`
Demo.java内容
Result parse = ToAnalysis.parse("我是谁的谁");
System.out.println(parse);
library.properties内容
dic=library/default.dic`
`
default.dic内容
我是谁的谁 我是谁 n 的谁 n`
输出结果
一月 26, 2021 10:36:33 下午 org.ansj.library.AmbiguityLibrary error
严重: Init ambiguity library error :org.ansj.exception.LibraryException: path :library/ambiguity.dic file:E:\code\ideaProject\b\library\ambiguity.dic not found or can not to read, path: library/ambiguity.dic
我/r,是/v,谁/r,的/u,谁/r
我是期望他输出:
我是谁/n,的谁/n
请问作者和各位大佬指点迷津
The text was updated successfully, but these errors were encountered: