Elasticsearch5.4.0 IK分词插件安装详解

1、ES5.4.0 IK分词安装步骤

步骤1:下载最新版的ik插件

地址:https://github.com/medcl/elasticsearch-analysis-ik

步骤2:解压elasticsearch-analysis-ik-master.zip

unzip elasticsearch-analysis-ik-master.zip

步骤3:修改ES版本号。

修改pom.xml,最新(20170622)是5.4.2, 改为5.4.0

步骤4:执行mvn package

步骤5:在/opt/elasticsearch/plugins下新建ik文件夹。

完成拷贝:将
cp elasticsearch-analysis-ik-master/target/releases/elasticsearch-analysis-ik-5.4.0.zip
/opt/elasticsearch/plugins/ik/

步骤6:重启ES。

2、IK使用

ik_max_word: 会将文本做最细粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,中华人民,中华,华人,人民共和国,人民,人,民,共和国,共和,和,国国,国歌”,会穷尽各种可能的组合;

ik_smart: 会做最粗粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,国歌”

3、小结

1、分词插件有很多,IK是由ES的中国第一位员工曾勇开发的,相对效果更好些。
2、虽然github已经很简明扼要的有说明,但自己安装的时候,总会遇到这样或那样的问题,记录下来,以备后用。

——————————————————————————————————
更多ES相关实战干货经验分享,请扫描下方【铭毅天下】微信公众号二维码关注。
(每周至少更新一篇!)

这里写图片描述
和你一起,死磕Elasticsearch
——————————————————————————————————

2017年7月2日 9:13 于家中床前

作者:铭毅天下
转载请标明出处,原文地址:
http://blog.csdn.net/laoyang360/article/details/74090357
如果感觉本文对您有帮助,请点击‘顶’支持一下,您的支持是我坚持写作最大的动力,谢谢!

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
=== Description === Thanks to the Unity community, BioIK has become a popular tool for inverse kinematics in Unity3D, and has now evolved to version 2.0. With this asset, you will be able to solve the inverse kinematics problem on generic kinematic geometries with single or multiple kinematic chains. It is very easy-to-use, and now only requires one single script 'BioIK' to define and solve the postures for all your characters. All you need to do is setting up the joints and goals as you wish, and then watch the magic happen when pressing 'Play'. If desired, joint limits can be set independently for each axis of motion, supporting both rotational and translational movement. The motion itself can either be instantaneous, but also allows setting a maximum velocity and maximum acceleration in order to simulate naturally-looking motion. The IK problem can be solved either purely for position or orientation, but also easily for full pose or looking direction without violating any joint limits or getting stuck in local optima. Further objectives can also be set to realise task-specific goals and motion behaviours, such as real-time collision avoidance with particular objects, intermediate goals for the elbow / wrist, or weighted stiffness for single joints. The developed algorithm tackles the problem using biologically-inspired memetic evolutionary optimisation. It avoids running into mathematical problems of related IK solvers, and scales well even for greatly higher degree of freedom.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

铭毅天下

和你一起,死磕Elastic!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值