Class TokenInfoDictionaryWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FST<java.lang.Long> fst  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setFST​(FST<java.lang.Long> fst)  
      void write​(java.nio.file.Path baseDir)
      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...].....
      private void writeFST​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

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

      • fst

        private FST<java.lang.Long> fst
    • Constructor Detail

      • TokenInfoDictionaryWriter

        TokenInfoDictionaryWriter​(int size)
    • Method Detail

      • setFST

        public void setFST​(FST<java.lang.Long> fst)
      • write

        public void write​(java.nio.file.Path baseDir)
                   throws java.io.IOException
        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 class BinaryDictionaryWriter
        Throws:
        java.io.IOException - if an I/O error occurs writing the dictionary files
      • writeFST

        private void writeFST​(java.nio.file.Path path)
                       throws java.io.IOException
        Throws:
        java.io.IOException