Git Product home page Git Product logo

Comments (2)

lionsoul2014 avatar lionsoul2014 commented on May 24, 2024

嗯,这个不算一个错误。Jcseg对英文的分词就是通过标点和空格,并没有像中文一样依赖词库,这个切分就是这个结果。

你可以在jcseg.properties中把jcseg.keeppunctuations = @#%.&+ 的'.'给去掉,就会切分成com和java了。
jcseg.keeppunctuations控制者保留标点,之中的标点会当做普通英文字符保留。

from jcseg.

joock avatar joock commented on May 24, 2024

2.*版本下,去掉jcseg.keeppunctuations = @#%.&+ 中的'.'之后,确实没问题了。:)
但是,在jcseg.keeppunctuations的配置相同的情况下,2.版本下java这个单词被分成了j和ava,在1.9的版本下没有这个问题,是命中了字母长度(66个)的一个规则?

com.com.com.com.com.com.com.com.com.com.com.java.java.java.java.j/en
ava.java.java/en

from jcseg.

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.