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

配置文件无法加载 #783

Open
zcx-git1240 opened this issue Jan 26, 2021 · 1 comment
Open

配置文件无法加载 #783

zcx-git1240 opened this issue Jan 26, 2021 · 1 comment

Comments

@zcx-git1240
Copy link

zcx-git1240 commented Jan 26, 2021

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
请问作者和各位大佬指点迷津

@shi-yuan
Copy link
Member

首先,default.dic格式有问题,可以看下default.dic
其次,路径的问题,#780

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

2 participants