Comments (6)
使用bm25插件需要先在dict.conf中配置String2FloatAdapter类型的term权重字典。
然后在BM25Similarity插件的配置中增加:
using_dict_name : "term权重字典名"
from anyq.
那是不是也需要配置path,这个是应该是项目内置好了的模块吧,没看到这个
from anyq.
使用BM25Similarity需要自己提供term权重字典(比如idf),并配置path
from anyq.
有些不理解,不是需要一个tf字典和一个idf字典么,然后就配置文件而言好像只是指定了数值转换类型(String2FloatAdapter
),貌似没有指定计算模块/逻辑的参数哦
from anyq.
tf是在输入question/召回question上统计的,不需要字典。path配置的是term权重字典(例如idf)。
from anyq.
好的,我直接用灌库全部数据按照配置的lac切词后计算一个idf字典放进去应该OK,多谢及时的解答 @zhanghan1992
from anyq.
Related Issues (20)
- rank_strategy.cpp计算逻辑问题
- 生成语义索引库时,出现Segmentation Fault HOT 2
- 想把lac分词工具升级到2.0版本 HOT 5
- simnet 能单独运行吗,数据集在哪?
- 为什么Simnet召回时分数为负
- 如何在离线环境下安装编译AnyQ HOT 1
- 关于检索Retrieval模块的几个小问题
- Matching中可以增加“Tensorflow匹配模型相似度: TFSimilarity”这个插件么?
- AnyQ支持多轮对话设计吗
- AnyQ的配置文件是如何起作用的
- 请问如何做到业务分离? HOT 1
- make 配置出错 HOT 1
- 远程访问web服务时连接不通,但是可以ping通
- 是否考虑再加入PyTorch实现?
- docker 环境下,有安装anyQ成功的么 HOT 1
- Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory HOT 1
- 请问在树莓派的arm环境上 可以编译成功吗? HOT 1
- 江湖急救,make 报错 HOT 2
- 子模组 'doc' (https://github.com/gflags/gflags.git) 未对路径 'doc' 注册 HOT 1
- 成功启动run_server后,通过http请求服务异常退出 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anyq.