com.mayabot.nlp.transform.Traditional2Simplified.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mynlp-transform Show documentation
Show all versions of mynlp-transform Show documentation
Maya Nlp subproject :modules:mynlp-transform
The newest version!
package com.mayabot.nlp.transform
import com.mayabot.nlp.injector.Singleton
import java.util.TreeMap
/**
* 繁体转简体的词典
*
* @author jimichan
*/
@Singleton
class Traditional2Simplified : BaseTransformDictionary() {
override fun loadDictionary(): TreeMap {
return loadFromResource(RS_NAME)
}
companion object {
private val RS_NAME = "ts-dict/t2s.txt"
}
}