public abstract class AbstractPinyinTone extends Object implements IPinyinTone
| 构造器和说明 |
|---|
AbstractPinyinTone() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract String |
getCharTone(String segment,
IPinyinToneStyle toneStyle)
获取单个字的映射
|
protected abstract List<String> |
getCharTones(String chinese,
IPinyinToneStyle toneStyle)
获取单个字符的所有拼音列表
|
protected abstract String |
getPhraseTone(String phraseTone,
IPinyinToneStyle toneStyle,
String connector)
获取词组的映射
|
String |
tone(String segment,
IPinyinContext context)
获取映射后的信息
|
List<String> |
toneList(String chinese,
IPinyinContext context)
返回所有的列表
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitphraseSet, toneNumprotected abstract String getCharTone(String segment, IPinyinToneStyle toneStyle)
segment - 单个的字toneStyle - 拼音格式protected abstract List<String> getCharTones(String chinese, IPinyinToneStyle toneStyle)
chinese - 中文字符toneStyle - 拼音格式protected abstract String getPhraseTone(String phraseTone, IPinyinToneStyle toneStyle, String connector)
phraseTone - 单个的字toneStyle - 拼音格式connector - 连接符号public String tone(String segment, IPinyinContext context)
IPinyinTonetone 在接口中 IPinyinTonesegment - 分词后的片段context - 上下文public List<String> toneList(String chinese, IPinyinContext context)
IPinyinTonetoneList 在接口中 IPinyinTonechinese - 单个中文context - 上下文Copyright © 2022. All rights reserved.