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

求一个文件加载的用户自定义词典 #780

Closed
st18601019822 opened this issue Nov 18, 2020 · 2 comments
Closed

求一个文件加载的用户自定义词典 #780

st18601019822 opened this issue Nov 18, 2020 · 2 comments

Comments

@st18601019822
Copy link

按照案例的方式做了一下,但是没有加载成功,不知道是哪一步错了,尝试了llibrary.properties里添加dic=library\userLibrary.dic,也尝试了MyStaticValue.putLibrary(key,path),也尝试了Library.makeForest,但是都没有成功

@ansjsun
Copy link
Member

ansjsun commented Jan 22, 2021

启动的时候有log 。显示从哪里加载词典。仔细观察。然后把词典放到那个路径就可以。

还可以如果 相对路径有问题。用绝对路径试试

@SeeWorldBaby
Copy link

这么不智能?还要启动之后看日志,那我们生产环境部署难道要自己拷贝dic文件?

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

3 participants