码迷,mamicode.com
首页 > 其他好文 > 详细

elastic ik中文分词测试

时间:2018-08-27 21:34:25      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:cto   shadow   last   color   art   com   ffffff   中文分词   size   

1、发送_analyze请求
技术分享图片
2、返回结果:
{
"tokens": [
{
"token": "珠江口",
"start_offset": 0,
"end_offset": 3,
"type": "CN_WORD",
"position": 0
},
{
"token": "珠江",
"start_offset": 0,
"end_offset": 2,
"type": "CN_WORD",
"position": 1
},
{
"token": "江口",
"start_offset": 1,
"end_offset": 3,
"type": "CN_WORD",
"position": 2
},
{
"token": "阳江",
"start_offset": 3,
"end_offset": 5,
"type": "CN_WORD",
"position": 3
},
{
"token": "中山",
"start_offset": 6,
"end_offset": 8,
"type": "CN_WORD",
"position": 4
},
{
"token": "深圳",
"start_offset": 9,
"end_offset": 11,
"type": "CN_WORD",
"position": 5
},
{
"token": "n",
"start_offset": 11,
"end_offset": 12,
"type": "ENGLISH",
"position": 6
},
{
"token": "珠海",
"start_offset": 12,
"end_offset": 14,
"type": "CN_WORD",
"position": 7
},
{
"token": "3",
"start_offset": 14,
"end_offset": 15,
"type": "ARABIC",
"position": 8
},
{
"token": "江门",
"start_offset": 15,
"end_offset": 17,
"type": "CN_WORD",
"position": 9
},
{
"token": "user1",
"start_offset": 18,
"end_offset": 23,
"type": "LETTER",
"position": 10
},
{
"token": "user",
"start_offset": 18,
"end_offset": 22,
"type": "ENGLISH",
"position": 11
},
{
"token": "1",
"start_offset": 22,
"end_offset": 23,
"type": "ARABIC",
"position": 12
},
{
"token": "周口",
"start_offset": 24,
"end_offset": 26,
"type": "CN_WORD",
"position": 13
}
]
}

elastic ik中文分词测试

标签:cto   shadow   last   color   art   com   ffffff   中文分词   size   

原文地址:http://blog.51cto.com/dressame/2165076

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!