3 Star 0 Fork 0

Gitee 极速下载 / mmseg4j

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/chenlb/mmseg4j-core
克隆/下载
README.md 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
chenlb 提交于 2017-08-22 20:51 . 加入 example 使用说明

mmseg4j core 使用 Chih-Hao Tsai 的 MMSeg 算法(http://technology.chtsai.org/mmseg/ )实现的中文分词器。

MMSeg 算法有两种分词方法:Simple和Complex,都是基于正向最大匹配。Complex 加了四个规则过虑。官方说:词语的正确识别率达到了 98.41%。mmseg4j 已经实现了这两种分词算法。

<dependency>
    <groupId>com.chenlb.mmseg4j</groupId>
    <artifactId>mmseg4j-core</artifactId>
    <version>1.10.0</version>
</dependency>

example

git clone https://github.com/chenlb/mmseg4j-core mmseg4j-core
cd mmseg4j-core
mvn compile

#运行
#Complex 分词模式
java -cp .:target/classes com.chenlb.mmseg4j.example.Complex

#Simple 分词模式
java -cp .:target/classes com.chenlb.mmseg4j.example.Simple

#MaxWord 分词模式
java -cp .:target/classes com.chenlb.mmseg4j.example.MaxWord

#或编译打包
mvn package

java -cp .:target/mmseg4j-core-1.10.1-SNAPSHOT.jar com.chenlb.mmseg4j.example.Complex

其它

Java
1
https://gitee.com/mirrors/mmseg4j.git
git@gitee.com:mirrors/mmseg4j.git
mirrors
mmseg4j
mmseg4j
master

搜索帮助