Class DictionaryBuilder

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DictionaryBuilder​(java.io.File infoFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.File addFreqData​(java.io.File dictFile, boolean useSeparator)  
      protected java.io.File buildDict​(java.io.File inputFile)  
      protected java.io.File buildFSA​(java.io.File inputFile)  
      protected java.io.File convertTabToSeparator​(java.io.File inputFile)  
      protected @Nullable java.lang.String getOption​(java.lang.String option)  
      protected java.lang.String getOutputFilename()  
      protected boolean hasOption​(java.lang.String option)  
      protected boolean isOptionTrue​(java.lang.String option)  
      protected void readFreqList​(java.io.File freqListFile)  
      protected void setOutputFilename​(java.lang.String outputFilename)  
      • Methods inherited from class java.lang.Object

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

      • props

        private final java.util.Properties props
      • serializationFormat

        private static final morfologik.tools.SerializationFormat serializationFormat
      • freqList

        private final java.util.Map<java.lang.String,​java.lang.Integer> freqList
      • pFreqEntry

        private final java.util.regex.Pattern pFreqEntry
      • pTaggerEntry

        private final java.util.regex.Pattern pTaggerEntry
      • outputFilename

        private java.lang.String outputFilename
    • Constructor Detail

      • DictionaryBuilder

        protected DictionaryBuilder​(java.io.File infoFile)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setOutputFilename

        protected void setOutputFilename​(java.lang.String outputFilename)
      • getOutputFilename

        protected java.lang.String getOutputFilename()
      • buildDict

        protected java.io.File buildDict​(java.io.File inputFile)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • buildFSA

        protected java.io.File buildFSA​(java.io.File inputFile)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getOption

        @Nullable
        protected @Nullable java.lang.String getOption​(java.lang.String option)
      • hasOption

        protected boolean hasOption​(java.lang.String option)
      • isOptionTrue

        protected boolean isOptionTrue​(java.lang.String option)
      • readFreqList

        protected void readFreqList​(java.io.File freqListFile)
      • addFreqData

        protected java.io.File addFreqData​(java.io.File dictFile,
                                           boolean useSeparator)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • convertTabToSeparator

        protected java.io.File convertTabToSeparator​(java.io.File inputFile)
                                              throws java.lang.RuntimeException,
                                                     java.io.IOException
        Throws:
        java.lang.RuntimeException
        java.io.IOException