Class UnknownMorphData
java.lang.Object
org.apache.lucene.analysis.ja.dict.TokenInfoMorphData
org.apache.lucene.analysis.ja.dict.UnknownMorphData
- All Implemented Interfaces:
JaMorphData
,MorphData
Morphological information for unk dictionary.
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.ja.dict.TokenInfoMorphData
HAS_BASEFORM, HAS_PRONUNCIATION, HAS_READING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInflectionForm
(int wordId) Get inflection form of tokensgetInflectionType
(int morphId) Get inflection type of tokensgetReading
(int morphId, char[] surface, int off, int len) Get reading of tokensMethods inherited from class org.apache.lucene.analysis.ja.dict.TokenInfoMorphData
getBaseForm, getLeftId, getPartOfSpeech, getPronunciation, getRightId, getWordCost
-
Constructor Details
-
UnknownMorphData
UnknownMorphData(ByteBuffer buffer, IOSupplier<InputStream> posResource) throws IOException - Throws:
IOException
-
-
Method Details
-
getReading
Description copied from interface:JaMorphData
Get reading of tokens- Specified by:
getReading
in interfaceJaMorphData
- Overrides:
getReading
in classTokenInfoMorphData
- Parameters:
morphId
- word ID of token- Returns:
- Reading of the token
-
getInflectionType
Description copied from interface:JaMorphData
Get inflection type of tokens- Specified by:
getInflectionType
in interfaceJaMorphData
- Overrides:
getInflectionType
in classTokenInfoMorphData
- Parameters:
morphId
- word ID of token- Returns:
- inflection type, or null
-
getInflectionForm
Description copied from interface:JaMorphData
Get inflection form of tokens- Specified by:
getInflectionForm
in interfaceJaMorphData
- Overrides:
getInflectionForm
in classTokenInfoMorphData
- Parameters:
wordId
- word ID of token- Returns:
- inflection form, or null
-