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

addAll method can just be used once after clear method! #64

Open
lingzhy opened this issue May 23, 2018 · 4 comments
Open

addAll method can just be used once after clear method! #64

lingzhy opened this issue May 23, 2018 · 4 comments

Comments

@lingzhy
Copy link

lingzhy commented May 23, 2018

addAll method can just be used once after clear method!

无法使用add方法,
throw new RuntimeException("not yet support, please use addAll method!");

@lingzhy
Copy link
Author

lingzhy commented May 23, 2018

1.2版本的库没有问题,着急~~~

@lingzhy
Copy link
Author

lingzhy commented May 24, 2018

我去,怎么没人回答啊,难道没有人遇到
不行换jieba或者Hanlp了,泪~~~~~~~~~~··· @ysc

@walterye
Copy link

walterye commented Jun 8, 2018

List customWords = new ArrayList<>();
customWords.add("加油啊");
DictionaryFactory.getDictionary().clear();
DictionaryFactory.getDictionary().addAll(customWords);

@CamWang
Copy link

CamWang commented Mar 13, 2019

List customWords = new ArrayList<>();
customWords.add("加油啊");
DictionaryFactory.getDictionary().clear();
DictionaryFactory.getDictionary().addAll(customWords);

感谢,这一个是正解了!!

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