Interface JaMorphData
- All Superinterfaces:
MorphData
Represents Japanese morphological information.
-
Method Summary
Modifier and TypeMethodDescriptiongetBaseForm
(int morphId, char[] surface, int off, int len) Get base form of wordgetInflectionForm
(int wordId) Get inflection form of tokensgetInflectionType
(int morphId) Get inflection type of tokensgetPartOfSpeech
(int morphId) Get Part-Of-Speech of tokensgetPronunciation
(int morphId, char[] surface, int off, int len) Get pronunciation of tokensgetReading
(int morphId, char[] surface, int off, int len) Get reading of tokensMethods inherited from interface org.apache.lucene.analysis.morph.MorphData
getLeftId, getRightId, getWordCost
-
Method Details
-
getPartOfSpeech
Get Part-Of-Speech of tokens- Parameters:
morphId
- word ID of token- Returns:
- Part-Of-Speech of the token
-
getReading
Get reading of tokens- Parameters:
morphId
- word ID of token- Returns:
- Reading of the token
-
getBaseForm
Get base form of word- Parameters:
morphId
- word ID of token- Returns:
- Base form (only different for inflected words, otherwise null)
-
getPronunciation
Get pronunciation of tokens- Parameters:
morphId
- word ID of token- Returns:
- Pronunciation of the token
-
getInflectionType
Get inflection type of tokens- Parameters:
morphId
- 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
-