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:JaMorphDataGet reading of tokens- Specified by:
getReadingin interfaceJaMorphData- Overrides:
getReadingin classTokenInfoMorphData- Parameters:
morphId- word ID of token- Returns:
- Reading of the token
-
getInflectionType
Description copied from interface:JaMorphDataGet inflection type of tokens- Specified by:
getInflectionTypein interfaceJaMorphData- Overrides:
getInflectionTypein classTokenInfoMorphData- Parameters:
morphId- word ID of token- Returns:
- inflection type, or null
-
getInflectionForm
Description copied from interface:JaMorphDataGet inflection form of tokens- Specified by:
getInflectionFormin interfaceJaMorphData- Overrides:
getInflectionFormin classTokenInfoMorphData- Parameters:
wordId- word ID of token- Returns:
- inflection form, or null
-