Git Product home page Git Product logo

Comments (3)

gideon0709 avatar gideon0709 commented on July 17, 2024

SORRY...我發現SetStopWords是設定停用字詞的文字檔路徑
不是拿來使用類似動態新增字詞的功能

可否也新增一個功能是動態新增停用字詞呢?
(類似JiebaSegmenter.AddWord)
謝謝

from jieba.net.

gideon0709 avatar gideon0709 commented on July 17, 2024

public void AddStopWords(string Word)
{
if (!StopWords.Contains(Word)) {
StopWords.Add(Word.Trim());
}
}

您好,我自己解決了,加了一個函數
但不知道如何更新GitHub上
若您覺得可以使用,就請您再更新囉
謝謝

from jieba.net.

anderscui avatar anderscui commented on July 17, 2024

@gideon0709 非常感谢您的建议,您是否可以添加一个pull request,如果不方便,我下一次再加上。

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.