public interface WordParserManager
Modifier and Type | Method and Description |
---|---|
void |
addCharacter(char character) |
void |
addCharacter(Character character) |
void |
addStopWord(String word)
添加停止词
|
void |
addStopWords(List<String> stopWordList)
添加一组停止词
|
void |
addWord(List<Word> words) |
void |
addWord(Word word) |
void |
addWordString(List<String> words) |
void |
addWordString(String word) |
Character |
getCharacter(char character)
根据指定字条返回字符定义
|
String |
getCharacterSpell(char character)
返回某字的第一个位置的拼音
|
String |
getCharacterSpell(char character,
int index)
返回某字的指定位置的拼音
|
String[] |
getCharacterSpells(char character)
返回某字的拼音列表
|
Word |
getWord(String word) |
WordDescription |
getWordDescription(char c,
WordParserType parserType)
返回指定类型字对象的起始描述节点
|
String[] |
getWordSpell(String word)
返回指定单词的拼音
|
String |
getWordSpellShort(String word)
返回指定单词的拼音简写
|
boolean |
isStopWord(String word)
返回是否是停止词
|
void |
setSentenceRank(SentenceRank sentenceRank) |
WordDescription getWordDescription(char c, WordParserType parserType)
c
- parserType
- void addStopWord(String word)
word
- void addCharacter(Character character)
void addCharacter(char character)
void addWord(Word word)
void addWordString(String word)
Word getWord(String word) throws ParserException
ParserException
boolean isStopWord(String word)
word
- String[] getCharacterSpells(char character)
character
- String getCharacterSpell(char character, int index)
character
- index
- String getCharacterSpell(char character)
character
- Character getCharacter(char character) throws ParserException
character
- ParserException
String[] getWordSpell(String word) throws ParserException
word
- ParserException
String getWordSpellShort(String word) throws ParserException
word
- ParserException
void setSentenceRank(SentenceRank sentenceRank)
Copyright © 2006–2018 TinyGroup. All rights reserved.