
pingbu.nlp.UnitChar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pingbu-nlp Show documentation
Show all versions of pingbu-nlp Show documentation
A library to do Chinese NLP
package pingbu.nlp;
import pingbu.pinyin.Pinyin;
class UnitChar implements Unit {
final char mChar;
UnitChar(char c) {
mChar = c;
}
@Override
public String toString() {
return Character.toString(mChar);
}
@Override
public String getId() {
return String.format("%d", Pinyin.normailizeChar(mChar));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy