Skip to content

obiteaaron/pinyin4j-multi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pinyin4j-multi

Forked from https://github.com/belerweb/pinyin4j

Download

Download the jar via maven:

<dependency>
    <groupId>com.github.obiteaaron</groupId>
    <artifactId>pinyin4j-multi</artifactId>
    <version>1.0.0</version>
</dependency>

多音字识别

在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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.8%
  • HTML 0.2%