Coder Social home page Coder Social logo

Comments (6)

zhanghan1992 avatar zhanghan1992 commented on August 16, 2024

使用bm25插件需要先在dict.conf中配置String2FloatAdapter类型的term权重字典。
然后在BM25Similarity插件的配置中增加:
using_dict_name : "term权重字典名"

from anyq.

fanzfeng avatar fanzfeng commented on August 16, 2024

那是不是也需要配置path,这个是应该是项目内置好了的模块吧,没看到这个

from anyq.

zhanghan1992 avatar zhanghan1992 commented on August 16, 2024

使用BM25Similarity需要自己提供term权重字典(比如idf),并配置path

from anyq.

fanzfeng avatar fanzfeng commented on August 16, 2024

有些不理解,不是需要一个tf字典和一个idf字典么,然后就配置文件而言好像只是指定了数值转换类型(String2FloatAdapter),貌似没有指定计算模块/逻辑的参数哦

from anyq.

zhanghan1992 avatar zhanghan1992 commented on August 16, 2024

tf是在输入question/召回question上统计的,不需要字典。path配置的是term权重字典(例如idf)。

from anyq.

fanzfeng avatar fanzfeng commented on August 16, 2024

好的,我直接用灌库全部数据按照配置的lac切词后计算一个idf字典放进去应该OK,多谢及时的解答 @zhanghan1992

from anyq.

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.