GithubHelp home page GithubHelp logo

Comments (4)

yanyiwu avatar yanyiwu commented on August 15, 2024

首先,那个不是词频,是tfidf的分值。然后,如果我不返回分值的话,又会有另一个issue问我为什么不返回分值。
所以我还是选了返回分值。

from nodejieba.

blade254353074 avatar blade254353074 commented on August 15, 2024

好吧。。。那可不可以修改返回的数据结构

如果需要tfidf分值,则返回

[{ value: "str", tfidf: 0.1 }]

不需要的话,返回

["str"]

我也只是建议下,用mapslice多操作那么下有些不简洁

from nodejieba.

yanyiwu avatar yanyiwu commented on August 15, 2024

众口难调啊,这个暂时就不改了哈。

from nodejieba.

blade254353074 avatar blade254353074 commented on August 15, 2024

@yanyiwu 没事~

from nodejieba.

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.