Class UnknownMorphData
java.lang.Object
org.apache.lucene.analysis.ko.dict.TokenInfoMorphData
org.apache.lucene.analysis.ko.dict.UnknownMorphData
- All Implemented Interfaces:
KoMorphData
,MorphData
Morphological information for unk dictionary.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.analysis.ko.dict.KoMorphData
KoMorphData.Morpheme
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.ko.dict.TokenInfoMorphData
HAS_READING, HAS_SINGLE_POS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMorphemes
(int wordId, char[] surfaceForm, int off, int len) Get the morphemes of specified word (e.g.getReading
(int wordId) Get the reading of specified word (mainly used for Hanja to Hangul conversion).Methods inherited from class org.apache.lucene.analysis.ko.dict.TokenInfoMorphData
getLeftId, getLeftPOS, getPOSType, getRightId, getRightPOS, getWordCost
-
Constructor Details
-
UnknownMorphData
UnknownMorphData(ByteBuffer buffer, IOSupplier<InputStream> posResource) throws IOException - Throws:
IOException
-
-
Method Details
-
getReading
Description copied from interface:KoMorphData
Get the reading of specified word (mainly used for Hanja to Hangul conversion).- Specified by:
getReading
in interfaceKoMorphData
- Overrides:
getReading
in classTokenInfoMorphData
-
getMorphemes
Description copied from interface:KoMorphData
Get the morphemes of specified word (e.g. 가깝으나: 가깝 + 으나).- Specified by:
getMorphemes
in interfaceKoMorphData
- Overrides:
getMorphemes
in classTokenInfoMorphData
-