Install pinyin4j via Maven
masterTo use pinyin4j in your Java project, add the following dependency to your pom.xml file. This version is deployed to Maven Central.
<dependency>
<groupId>com.belerweb</groupId>
<artifactId>pinyin4j</artifactId>
<version>2.5.0</version>
</dependency>