Class UnknownDictionaryWriter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int put​(java.lang.String[] entry)
      put the entry in map mecab-ko-dic features 0 - surface 1 - left cost 2 - right cost 3 - word cost 4 - part of speech0+part of speech1+...
      void putCharacterCategory​(int codePoint, java.lang.String characterClassName)
      Put mapping from unicode code point to character class.
      void putInvokeDefinition​(java.lang.String characterClassName, int invoke, int group, int length)  
      void write​(java.nio.file.Path baseDir)
      Write dictionary in file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnknownDictionaryWriter

        public UnknownDictionaryWriter​(int size)
    • Method Detail

      • put

        public int put​(java.lang.String[] entry)
        Description copied from class: BinaryDictionaryWriter
        put the entry in map mecab-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:
        put in class BinaryDictionaryWriter
        Returns:
        current position of buffer, which will be wordId of next entry
      • putCharacterCategory

        public void putCharacterCategory​(int codePoint,
                                         java.lang.String characterClassName)
        Put mapping from unicode code point to character class.
        Parameters:
        codePoint - code point
        characterClassName - character class name
      • putInvokeDefinition

        public void putInvokeDefinition​(java.lang.String characterClassName,
                                        int invoke,
                                        int group,
                                        int length)
      • write

        public void write​(java.nio.file.Path baseDir)
                   throws java.io.IOException
        Description copied from class: BinaryDictionaryWriter
        Write dictionary in file
        Overrides:
        write in class BinaryDictionaryWriter
        Throws:
        java.io.IOException - if an I/O error occurs writing the dictionary files