public class WordParserManagerImpl extends Object implements WordParserManager
Constructor and Description |
---|
WordParserManagerImpl() |
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 c)
返回某字的拼音列表
|
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) |
public void addStopWord(String word)
WordParserManager
addStopWord
in interface WordParserManager
public void addCharacter(Character character)
addCharacter
in interface WordParserManager
public void addCharacter(char character)
addCharacter
in interface WordParserManager
public void addStopWords(List<String> stopWordList)
WordParserManager
addStopWords
in interface WordParserManager
public void addWord(Word word)
addWord
in interface WordParserManager
public void addWordString(String word)
addWordString
in interface WordParserManager
public void addWordString(List<String> words)
addWordString
in interface WordParserManager
public void addWord(List<Word> words)
addWord
in interface WordParserManager
public boolean isStopWord(String word)
WordParserManager
isStopWord
in interface WordParserManager
public String[] getCharacterSpells(char c)
WordParserManager
getCharacterSpells
in interface WordParserManager
public String getCharacterSpell(char character, int index)
WordParserManager
getCharacterSpell
in interface WordParserManager
public String getCharacterSpell(char character)
WordParserManager
getCharacterSpell
in interface WordParserManager
public Character getCharacter(char character) throws ParserException
WordParserManager
getCharacter
in interface WordParserManager
ParserException
public String[] getWordSpell(String word) throws ParserException
WordParserManager
getWordSpell
in interface WordParserManager
ParserException
public Word getWord(String word) throws ParserException
getWord
in interface WordParserManager
ParserException
public WordDescription getWordDescription(char c, WordParserType parserType)
WordParserManager
getWordDescription
in interface WordParserManager
public String getWordSpellShort(String word) throws ParserException
WordParserManager
getWordSpellShort
in interface WordParserManager
ParserException
public void setSentenceRank(SentenceRank sentenceRank)
setSentenceRank
in interface WordParserManager
Copyright © 2006–2018 TinyGroup. All rights reserved.