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

com.mayabot.nlp.module.pinyin.CustomPinyin Maven / Gradle / Ivy

package com.mayabot.nlp.module.pinyin;

import java.util.Map;
import java.util.TreeMap;

/**
 * @author jimichan
 */
public class CustomPinyin {

    private Map map = new TreeMap<>();

    public void put(String text, String pinyin) {
        map.put(text, pinyin);
    }

    public void remove(String text) {
        map.remove(text);
    }

    public Map getMap() {
        return map;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy