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

严重BUG:当分词内容中包含单独的A字母时,这个A字母会被分词器扔掉 #287

Open
Dustone-JavaWeb opened this issue Apr 11, 2023 · 1 comment

Comments

@Dustone-JavaWeb
Copy link

GET /_analyze
{
"analyzer" : "ik_smart",
"text" : "我们A A制"
}
{
"tokens": [
{
"token": "我们",
"start_offset": 0,
"end_offset": 2,
"type": "CN_WORD",
"position": 0
},
{
"token": "制",
"start_offset": 5,
"end_offset": 6,
"type": "CN_CHAR",
"position": 1
}
]
}

@wangming31
Copy link

ik默认会加载一个停用词典stopword.dic,里面包含字母'a'(在英文中被认为是停用词),所以会被过滤掉,把ik目录下/config/stopword.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

2 participants