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

設置了轉換器后分詞不太理想 #52

Open
wewaa opened this issue Jan 12, 2024 · 1 comment
Open

設置了轉換器后分詞不太理想 #52

wewaa opened this issue Jan 12, 2024 · 1 comment

Comments

@wewaa
Copy link

wewaa commented Jan 12, 2024

設置了轉換器后分詞不太理想,比如搜索 清華 沒有結果,搜索清華大學有結果,這個是什麽原因,我設置如下:
{
"analysis": {
"char_filter": {
"tsconvert": {
"type": "stconvert",
"convert_type": "t2s"
}
},
"analyzer": {
"my_analyzer": {
"type": "custom",
"char_filter": [
"tsconvert"
],
"tokenizer": "ik_smart",
"filter": [
"lowercase"
]
}
}
}
}
有什麽建議嗎?

@medcl
Copy link
Member

medcl commented May 6, 2024

麻烦提供一下测试输入和期望分词结果

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