HanLP Speed 分词器 #
hanlp_speed 分词器使用 HanLP 极速分词模式,牺牲一定精度换取更快的分词速度,适合对延迟敏感的在线搜索场景。
需要安装 analysis-hanlp 插件。
示例 #
PUT my_index
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"tokenizer": "hanlp_speed"
}
}
}
}
}