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 boolean
isKatakana
(String s) protected int
put the entry in mapprivate static int
sharedPrefix
(String left, String right) private String
toKatakana
(String s) private void
writeKatakana
(String s, ByteBuffer buffer) protected void
writePosDict
(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:
putEntry
in classDictionaryEntryWriter
-
isKatakana
-
writeKatakana
-
toKatakana
-
writePosDict
Description copied from class:DictionaryEntryWriter
Flush POS dictionary data.- Specified by:
writePosDict
in classDictionaryEntryWriter
- Throws:
IOException
-