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

请问jieba分词插件是否支持配置同义词呢 #16

Open
zh6335901 opened this issue Aug 30, 2016 · 3 comments
Open

请问jieba分词插件是否支持配置同义词呢 #16

zh6335901 opened this issue Aug 30, 2016 · 3 comments

Comments

@zh6335901
Copy link

比如,通过更新Synonyms.txt文件来配置同义词

@Steven-Z-Yang
Copy link

没有人回复你呀。我自己通过各种尝试,已经实现了集成同义词,配置如下:

{
"settings": {
"analysis": {
"filter": {
"my_synonym_filter": {
"type": "synonym",
"synonyms_path" : "analysis/synonym.txt"
}
},
"analyzer": {
"my_synonyms": {
"tokenizer":"whitespace",
"filter": [
"jieba",
"my_synonym_filter"
]
}
}
}
},
"mappings" : {
"test" : {
"_all" : { "enabled" : false },
"properties" : {
"name" : { "type" : "string", "analyzer" : "jieba_index" }
}
}
}
}

@JohnHa0
Copy link

JohnHa0 commented Oct 25, 2018

Synonym.txt有啥格式要求不

@xuanyuanbao
Copy link

Synonym.txt有啥格式要求不
跨时空回复,这个有格式要求 例如Audi和奥迪,放在下面得
audi、奥迪

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

4 participants