ChenYiZhou0595 / pinyin4j

A copy of http://sourceforge.net/projects/pinyin4j, then deploy it to maven central repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pinyin4j

A copy of http://sourceforge.net/projects/pinyin4j, then deploy it to maven central repository.

Download

Download the jar via maven:

<dependency>
    <groupId>com.belerweb</groupId>
    <artifactId>pinyin4j</artifactId>
    <version>2.5.0</version>
</dependency>

QQ Group

QQ群:479540440

多音字识别

在pinyin4j的基础上添加了多音字识别,带近一万个多音词,但是这远远不够,所以用户可设置外挂词库

外挂多音词库

用户配置的外挂词库会覆盖系统中相同词的读音,可用于纠错

配置方式很简单,只需要配置路径即可

MultiPinyinConfig.multiPinyinPath="/Users/yiboliu/my_multi_pinyin.txt"

格式同系统的多音词库,如:

吸血鬼日记 (xi1,xue4,gui3,ri4,ji4)

About

A copy of http://sourceforge.net/projects/pinyin4j, then deploy it to maven central repository.


Languages

Language:Java 99.7%Language:HTML 0.3%