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

5.1.6版本NlpAnalysis分词器无法从读取用户自定义词典 #800

Open
pigcaso opened this issue Jul 26, 2023 · 0 comments
Open

5.1.6版本NlpAnalysis分词器无法从读取用户自定义词典 #800

pigcaso opened this issue Jul 26, 2023 · 0 comments

Comments

@pigcaso
Copy link

pigcaso commented Jul 26, 2023

Forest myDictionary = new Forest();
Library.insertWord(myDictionary, new Value("债基","nw","25000"));
NlpAnalysis.parse("还是看看债基吧",myDictionary);

分词结果如下:
还是 看看 债 基吧
期望分词应该是债基 吧,而债基吧 被拆分为 债 基吧
表示自定义词典在分词过程中并未生效?

@pigcaso pigcaso closed this as completed Jul 28, 2023
@pigcaso pigcaso reopened this Jul 28, 2023
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