Class TokenInfoDictionaryEntryWriter
java.lang.Object
org.apache.lucene.analysis.morph.DictionaryEntryWriter
org.apache.lucene.analysis.ko.dict.TokenInfoDictionaryEntryWriter
Writes system dictionary entries.
-
Field Summary
FieldsFields inherited from class org.apache.lucene.analysis.morph.DictionaryEntryWriter
buffer, posDict
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
put the entry in mapprotected void
writePosDict
(OutputStream bos, DataOutput out) Flush POS dictionary data.private void
Methods inherited from class org.apache.lucene.analysis.morph.DictionaryEntryWriter
currentPosition
-
Field Details
-
ID_LIMIT
private static final int ID_LIMIT- See Also:
-
-
Constructor Details
-
TokenInfoDictionaryEntryWriter
TokenInfoDictionaryEntryWriter(int size)
-
-
Method Details
-
putEntry
put the entry in mapmecab-ko-dic features
0 - surface 1 - left cost 2 - right cost 3 - word cost 4 - part of speech0+part of speech1+... 5 - semantic class 6 - T if the last character of the surface form has a coda, F otherwise 7 - reading 8 - POS type (*, Compound, Inflect, Preanalysis) 9 - left POS 10 - right POS 11 - expression
- Specified by:
putEntry
in classDictionaryEntryWriter
- Returns:
- current position of buffer, which will be wordId of next entry
-
writeString
-
writePosDict
Description copied from class:DictionaryEntryWriter
Flush POS dictionary data.- Specified by:
writePosDict
in classDictionaryEntryWriter
- Throws:
IOException
-