Class TokenizerApplication


  • public class TokenizerApplication
    extends Object
    • Constructor Detail

      • TokenizerApplication

        public TokenizerApplication()
    • Method Detail

      • doPrediction

        public static void doPrediction​(File inDir,
                                        File outDir,
                                        String modelFilename)
                                 throws IOException
        tokenize documents
        Parameters:
        inDir - the directory with the documents to be tokenized
        outDir - the directory where the tokenized documents should be written to
        modelFilename - the model to use for tokenization
        Throws:
        IOException
      • doTraining

        public static void doTraining​(File orgSentencesFile,
                                      File tokSentencesFile,
                                      String modelFilename)
        train a model
        Parameters:
        orgSentencesFile -
        tokSentencesFile -
        modelFilename -