The pinyin4j is based on the removal of some non-essential functions from the original pinyin4j source code. The pinyin4j is more lightweight than the original pinyin4j.
Ps:Ensure that the data(/pinyindb/unicode_to_hanyu_pinyin.txt) into the pinyin4j.jar When you get the pinyin4j.jar compile from souce code.
Original pinyin4j (Author Li Min)
Light pinyin4j (Modified by handsomezhou)