Class UnknownDictionaryWriter
java.lang.Object
org.apache.lucene.analysis.ja.util.BinaryDictionaryWriter
org.apache.lucene.analysis.ja.util.UnknownDictionaryWriter
-
Field Summary
FieldsFields inherited from class org.apache.lucene.analysis.ja.util.BinaryDictionaryWriter
buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
put the entry in mapvoid
putCharacterCategory
(int codePoint, String characterClassName) Put mapping from unicode code point to character class.void
putInvokeDefinition
(String characterClassName, int invoke, int group, int length) void
Write dictionary in file Dictionary format is: [Size of dictionary(int)], [entry:{left id(short)}{right id(short)}{word cost(short)}{length of pos info(short)}{pos info(char)}], [entry...], [entry...].....Methods inherited from class org.apache.lucene.analysis.ja.util.BinaryDictionaryWriter
addMapping, getBaseFileName
-
Field Details
-
characterDefinition
-
-
Constructor Details
-
UnknownDictionaryWriter
public UnknownDictionaryWriter(int size)
-
-
Method Details
-
put
Description copied from class:BinaryDictionaryWriter
put the entry in map- Overrides:
put
in 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:BinaryDictionaryWriter
Write dictionary in file Dictionary format is: [Size of dictionary(int)], [entry:{left id(short)}{right id(short)}{word cost(short)}{length of pos info(short)}{pos info(char)}], [entry...], [entry...].....- Overrides:
write
in classBinaryDictionaryWriter
- Throws:
IOException
- if an I/O error occurs writing the dictionary files
-