Giter Club home page Giter Club logo

Comments (4)

HYLcool avatar HYLcool commented on June 10, 2024

@noforit ,感谢你对data-juicer的关注与使用!

stopwords_filter在实现时的本意为根据停用词比例筛除一些搜索引擎处理过的文本。一般情况下,搜索引擎为了提升搜索效率等原因,会将一个文档中的停用词删除后再建立索引,但删除停用词的文档的语义信息会被破坏,在LLM的训练数据中会被认为是质量相对较低的文本。所以这个算子会将停用词比例较低的样本过滤掉。

但你说的也是正确的,停用词比例较高的样本也是质量较低的。stopwords_filter算子其实功能上有一个互补的算子,叫flagged_words_filter,它的本意是将敏感词比例过高的样本滤除。它们俩都可以指定词表,因此它们的更广泛用法为将感兴趣的某类词的比例过高或者过低的样本滤除。比如针对你所说的情况,我们可以加上一个flagged_words_filter,词表设置为停用词词表,这时就会把停用词比例过高的样本也筛除了。

如你还有进一步的疑问,欢迎随时与我们交流~

from data-juicer.

noforit avatar noforit commented on June 10, 2024

@HYLcool 好的好的,谢谢你

from data-juicer.

github-actions avatar github-actions commented on June 10, 2024

This issue is marked as stale because there has been no activity for 21 days. Remove stale label or add new comments or this issue will be closed in 3 day.

from data-juicer.

github-actions avatar github-actions commented on June 10, 2024

Close this stale issue.

from data-juicer.

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.