public interface Dictionary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAllFeatures(int wordId)
Gets all features of the specified word id
|
java.lang.String[] |
getAllFeaturesArray(int wordId)
Gets all features of the specified word id as a String array
|
java.lang.String |
getFeature(int wordId,
int... fields)
Gets one or more specific features of a token
|
int |
getLeftId(int wordId)
Gets the left id of the specified word
|
int |
getRightId(int wordId)
Gets the right id of the specified word
|
int |
getWordCost(int wordId)
Gets the word cost of the specified word
|
int getLeftId(int wordId)
wordId
- word id to get left id cost forint getRightId(int wordId)
wordId
- word id to get right id cost forint getWordCost(int wordId)
wordId
- word id to get word cost forjava.lang.String getAllFeatures(int wordId)
wordId
- word id to get features forjava.lang.String[] getAllFeaturesArray(int wordId)
wordId
- word id to get features forjava.lang.String getFeature(int wordId, int... fields)
This is an expert API
wordId
- word id to get features forfields
- array of feature ids. If this array is empty, all features are returned