com.mayabot.nlp.segment.common.DefaultCharNormalize Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mynlp Show documentation
Show all versions of mynlp Show documentation
Maya Nlp subproject :mynlp
package com.mayabot.nlp.segment.common;
import com.mayabot.nlp.segment.CharNormalize;
import com.mayabot.nlp.utils.CharNormUtils;
/**
* 大小转小写。
* 全角转半角,其他字符归一化。
*
* @author jimichan
*/
public class DefaultCharNormalize implements CharNormalize {
@Override
public void normal(char[] text) {
CharNormUtils.convert(text);
}
public static final DefaultCharNormalize instance = new DefaultCharNormalize();
}