Git Product home page Git Product logo

Comments (3)

tenlee2012 avatar tenlee2012 commented on June 20, 2024

首先很抱歉,本插件對於繁體字的支持不是太友好。

搜索的流程是這樣:

  1. 通過hanlp的簡繁轉換方法,把文本歸一化為簡體。
  2. 根據對應的簡體,去詞庫中匹配。

現象解釋:

  1. 詞庫存的是繁體,而匹配的時候用的是簡體,就導致匹配失敗。
  2. 詞庫存的是簡體,如果搜索的是繁體,會被上面的流程歸一化為簡體,再去詞庫匹配,而此時詞庫中存的也是簡體,就能匹配上了。

所以建議您在詞庫中放入簡體詞。

from elasticsearch-analysis-hao.

jarvisaoieong avatar jarvisaoieong commented on June 20, 2024

謝謝,了解了。

from elasticsearch-analysis-hao.

tenlee2012 avatar tenlee2012 commented on June 20, 2024

你好,已經更新了插件代碼,現在可以在自定義詞庫custom_dictionary.text中寫入繁體字了,可以下載相應的release zip包。

from elasticsearch-analysis-hao.

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.