|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Alphabet
An alphabet is an ordered set of symbols. A learning algorithm, e.g., would be informed on what symbols should be used when constructing queries by means of providing an alphabet containing these symbols.
| Method Summary | |
|---|---|
Symbol |
addSymbol(Symbol symbol)
Add Symbol to this alphabet. |
Symbol |
addSymbol(Symbol symbol,
int index)
Add Symbol to this alphabet at the specified index. |
int |
getIndexForSymbol(Symbol symbol)
Return index of the given Symbol in this alphabet. |
Symbol |
getSymbolByIndex(int index)
Return Symbol with the given index in this alphabet. |
List<Symbol> |
getSymbolList()
Return a list of all Symbol objects in this alphabet. |
int |
size()
Return number of smybols in this alphabet. |
| Method Detail |
|---|
int getIndexForSymbol(Symbol symbol)
Symbol in this alphabet.
symbol -
Symbol getSymbolByIndex(int index)
Symbol with the given index in this alphabet.
index -
Symbol addSymbol(Symbol symbol)
Symbol to this alphabet.
symbol -
Symbol addSymbol(Symbol symbol,
int index)
Symbol to this alphabet at the specified index.
symbol - index -
List<Symbol> getSymbolList()
Symbol objects in this alphabet.
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||