Class TokenInfoDictionaryEntryWriter
java.lang.Object
org.apache.lucene.analysis.morph.DictionaryEntryWriter
org.apache.lucene.analysis.ja.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 TypeMethodDescriptionprivate booleanisKatakana(String s) protected intput the entry in mapprivate static intsharedPrefix(String left, String right) private StringtoKatakana(String s) private voidwriteKatakana(String s, ByteBuffer buffer) protected voidwritePosDict(OutputStream bos, DataOutput out) Flush POS dictionary data.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-ipadic features
0 - surface 1 - left cost 2 - right cost 3 - word cost 4-9 - pos 10 - base form 11 - reading 12 - pronounciation
- Specified by:
putEntryin classDictionaryEntryWriter
-
isKatakana
-
writeKatakana
-
toKatakana
-
writePosDict
Description copied from class:DictionaryEntryWriterFlush POS dictionary data.- Specified by:
writePosDictin classDictionaryEntryWriter- Throws:
IOException
-