Giter Site home page Giter Site logo

Can't load custom dict about analysis-ik HOT 4 CLOSED

infinilabs avatar infinilabs commented on August 26, 2024
Can't load custom dict

from analysis-ik.

Comments (4)

hemingwang0902 avatar hemingwang0902 commented on August 26, 2024

会不会是因为你将 mydict.dic 和 sougou.dict 以 GBK 编码保存的? IK分词器从文件中读取词典时,是使用 UTF-8 编码读取的……

from analysis-ik.

vincentwyshan avatar vincentwyshan commented on August 26, 2024

我确认过了, 是 UTF8 编码的

而且从日志中看到 ik-analyzer 并没有尝试去加载这两个词典

from analysis-ik.

vincentwyshan avatar vincentwyshan commented on August 26, 2024

问题已经解决了

  • logs中没有打印加载 mydict.dic 和 sougou.dict 的日志信息, 但实际上是加载了这两个词典
  • 我用 elasticsearch-service wraper 安装, 之前只是重新修改dict文件内容然后重启service, 确实没有生效, uninstall service wraper 之后再安装, 新加的词典生效

猜测问题出在 service wraper 启动 elasticsearch 时的调用方式

from analysis-ik.

medcl avatar medcl commented on August 26, 2024

fixed ce6e7fd

from analysis-ik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.