All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mayabot.nlp.segment.common.DefaultCharNormalize Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy