GithubHelp home page GithubHelp logo

Comments (9)

yanyiwu avatar yanyiwu commented on July 16, 2024 1

这位朋友,你可能有一些误会,听我给你解释一下:

分词本身是没有使用停用词词典的,停用词词典是在extract,也就是关键词抽取的时候才会被使用。

from nodejieba.

xuwenbin avatar xuwenbin commented on July 16, 2024

了解了。使用了extract函数后,确实如此。关于extract的第二个参数,有没有详细的文档说明?我翻看了项目的页面,没有找到具体的文档的链接。

from nodejieba.

yanyiwu avatar yanyiwu commented on July 16, 2024

恩谢谢提醒,之前在README里面没有写清楚,第二个参数时topN,就是抽取关键词抽出权重最高的topN个。

from nodejieba.

xuwenbin avatar xuwenbin commented on July 16, 2024

如果调用者想获得所有的关键词,那个参数该传什么值呢?

from nodejieba.

yanyiwu avatar yanyiwu commented on July 16, 2024

传入一个极大值就行了,比如 Number.MAX_VALUE

from nodejieba.

xuwenbin avatar xuwenbin commented on July 16, 2024

根据测试来看,cut和extract都会保留阿拉伯数字,而且是切好后单独作为数字存在。关于这类字符,大家日常应该是stop掉还是保留呢?

from nodejieba.

yanyiwu avatar yanyiwu commented on July 16, 2024

纠正一下,这个 Number.MAX_VALUE 太大了不行。
下面这么大就够了。

var topN = 1<<30;

from nodejieba.

skyblue avatar skyblue commented on July 16, 2024

tag的时候stopWordDict也是不生效的吗?

from nodejieba.

yanyiwu avatar yanyiwu commented on July 16, 2024

@skyblue

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.