Git Product home page Git Product logo

Comments (6)

fxsjy avatar fxsjy commented on August 28, 2024

@yukaizhao , easy_install被切开了,是因为我没有把 ‘_’ 纳入可参与成词的字符。英文半角的空格的确被yield出来了,过滤一下就好了。“好用的”被切成单字,是因为“好”和“用“的单字概率较大,除非你在自定义词典中调高”好用“的概率。
你git pull 一下,看看test_userdict.py 这个例子能否满足你的需求?

45591bb

from jieba.

fxsjy avatar fxsjy commented on August 28, 2024

效果:

easy_install
is
great

python

正则表达式

好用

·

from jieba.

yukaizhao avatar yukaizhao commented on August 28, 2024

谢谢回复。

_下划线不应该作为单词分隔的依据希望在新的稳定版本中修复此问题
另外好,用单字的概率是很大,但是当他们在一起时则不应该切成两个词,这个问题是不是可以从算法上修改呀,也希望能做修改增强。

from jieba.

yukaizhao avatar yukaizhao commented on August 28, 2024

另外半角空格被yield出来其实是完全没有意义的,建议在jieba中处理,而不是让每个使用jieba的用户都去过滤这个空格

from jieba.

fxsjy avatar fxsjy commented on August 28, 2024

@yukaizhao , 空格已经在昨天的提交中过滤掉了。

from jieba.

fxsjy avatar fxsjy commented on August 28, 2024

@yukaizhao ,这个不是算法的问题,主要是词典中的词频有些并不准确。

from jieba.

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.