Interface Dictionary
- All Known Implementing Classes:
BinaryDictionary
,TokenInfoDictionary
,UnknownDictionary
,UserDictionary
public interface Dictionary
Dictionary interface for retrieving morphological data by id.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetBaseForm
(int wordId, char[] surface, int off, int len) Get base form of wordgetInflectionForm
(int wordId) Get inflection form of tokensgetInflectionType
(int wordId) Get inflection type of tokensint
getLeftId
(int wordId) Get left id of specified wordgetPartOfSpeech
(int wordId) Get Part-Of-Speech of tokensgetPronunciation
(int wordId, char[] surface, int off, int len) Get pronunciation of tokensgetReading
(int wordId, char[] surface, int off, int len) Get reading of tokensint
getRightId
(int wordId) Get right id of specified wordint
getWordCost
(int wordId) Get word cost of specified word
-
Field Details
-
INTERNAL_SEPARATOR
- See Also:
-
-
Method Details
-
getLeftId
int getLeftId(int wordId) Get left id of specified word- Returns:
- left id
-
getRightId
int getRightId(int wordId) Get right id of specified word- Returns:
- right id
-
getWordCost
int getWordCost(int wordId) Get word cost of specified word- Returns:
- word's cost
-
getPartOfSpeech
Get Part-Of-Speech of tokens- Parameters:
wordId
- word ID of token- Returns:
- Part-Of-Speech of the token
-
getReading
Get reading of tokens- Parameters:
wordId
- word ID of token- Returns:
- Reading of the token
-
getBaseForm
Get base form of word- Parameters:
wordId
- word ID of token- Returns:
- Base form (only different for inflected words, otherwise null)
-
getPronunciation
Get pronunciation of tokens- Parameters:
wordId
- word ID of token- Returns:
- Pronunciation of the token
-
getInflectionType
Get inflection type of tokens- Parameters:
wordId
- word ID of token- Returns:
- inflection type, or null
-
getInflectionForm
Get inflection form of tokens- Parameters:
wordId
- word ID of token- Returns:
- inflection form, or null
-