public class Lexicon extends Object
| Modifier and Type | Field and Description |
|---|---|
List<String> |
idWord |
BinTrie<Integer> |
wordId |
| Constructor and Description |
|---|
Lexicon() |
Lexicon(BinTrie<Integer> wordIdTrie) |
| Modifier and Type | Method and Description |
|---|---|
int |
addWord(String word) |
Integer |
getId(String word) |
String |
getWord(int id) |
String[] |
getWordIdArray() |
int |
size() |
Copyright © 2014–2021 码农场. All rights reserved.