Class UnknownDictionaryWriter
java.lang.Object
org.apache.lucene.analysis.ko.util.BinaryDictionaryWriter
org.apache.lucene.analysis.ko.util.UnknownDictionaryWriter
-
Field Summary
FieldsFields inherited from class org.apache.lucene.analysis.ko.util.BinaryDictionaryWriter
buffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintput the entry in mapvoidputCharacterCategory(int codePoint, String characterClassName) Put mapping from unicode code point to character class.voidputInvokeDefinition(String characterClassName, int invoke, int group, int length) voidWrite dictionary in fileMethods inherited from class org.apache.lucene.analysis.ko.util.BinaryDictionaryWriter
addMapping, getBaseFileName
-
Field Details
-
characterDefinition
-
-
Constructor Details
-
UnknownDictionaryWriter
public UnknownDictionaryWriter(int size)
-
-
Method Details
-
put
Description copied from class:BinaryDictionaryWriterput 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
- Overrides:
putin classBinaryDictionaryWriter- Returns:
- current position of buffer, which will be wordId of next entry
-
putCharacterCategory
Put mapping from unicode code point to character class.- Parameters:
codePoint- code pointcharacterClassName- character class name
-
putInvokeDefinition
-
write
Description copied from class:BinaryDictionaryWriterWrite dictionary in file- Overrides:
writein classBinaryDictionaryWriter- Throws:
IOException- if an I/O error occurs writing the dictionary files
-