PINYIN_BEAN_NAME
Constructor and Description |
---|
PinYinImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getPinYin(char c)
返回单字的拼音
|
List<String>[] |
getPinYin(char[] c)
返回字符数组的每个字的拼音
|
List<String> |
getPinYin(String str)
返回字符串的拼音,如果有多音字,取第一个为准
|
List<String> |
getPinYin(String str,
String pinyin)
返回词组的拼音
|
AVLTree<org.tiny.seg.impl.CharWithPinYin> |
getTree() |
void |
loadPinFile(InputStream inputStream,
String encode) |
void |
setTree(AVLTree<org.tiny.seg.impl.CharWithPinYin> tree) |
public AVLTree<org.tiny.seg.impl.CharWithPinYin> getTree()
public void setTree(AVLTree<org.tiny.seg.impl.CharWithPinYin> tree)
public void loadPinFile(InputStream inputStream, String encode)
loadPinFile
in interface PinYin
public List<String>[] getPinYin(char[] c)
PinYin
public List<String> getPinYin(String str)
PinYin
Copyright © 2006–2018 TinyGroup. All rights reserved.