Git Product home page Git Product logo

Comments (5)

Lumia1020 avatar Lumia1020 commented on July 17, 2024

还有一个问题 我通过 Lucene.NET 结合结巴分词 建立的索引
最近搜索药品 得出的结果为 4000 多条
而搜索药 得出的结果反而只有 500 多条
因为两者搜索条件都是一样的
搜索针对的域也是一样的 我不清楚是不是和词频有关

from jieba.net.

anderscui avatar anderscui commented on July 17, 2024

@Lumia1020 我的理解,词频只影响分词的结果,这会导致“药”和“药品”的不同。

from jieba.net.

Lumia1020 avatar Lumia1020 commented on July 17, 2024

我还想问个问题 JiebaSegmenter.DeleteWord(word) 就是这个方法 将删除一个词 使其不能被分出来
我想问一下 比如 感冒药 这三个字 是我搜索的 我这时候调用 JiebaSegmenter.DeleteWord(“感冒药”) 意思
用户在搜索 感冒药 这三个字时
不会被结巴分词组件分成 感冒/感冒药 分出来的结果只有感冒药这一种么

from jieba.net.

anderscui avatar anderscui commented on July 17, 2024

如果DeleteWord正常工作的话,删除感冒药后,”感冒药“的分词结果应该是感冒/药,因为”感冒药“不再被当做一个词了。

from jieba.net.

anderscui avatar anderscui commented on July 17, 2024

@Lumia1020 最后你是如何处理的?这里是否可以通过在Lucene中添加同义词来解决?

from jieba.net.

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.