Package 

Object LanguageModelFilesWriter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit createAndWriteLanguageModelFiles(Path inputFilePath, Charset inputFileCharset, Path outputDirectoryPath, Language language, String charClass) Creates language model files and writes them to a directory.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • createAndWriteLanguageModelFiles

         final static Unit createAndWriteLanguageModelFiles(Path inputFilePath, Charset inputFileCharset, Path outputDirectoryPath, Language language, String charClass)

        Creates language model files and writes them to a directory.

        Parameters:
        inputFilePath - The path to a txt file used for language model creation.
        inputFileCharset - The encoding of inputFilePath.
        outputDirectoryPath - The directory where the language model files are to be written.
        language - The language for which to create language models.
        charClass - A regex character class as supported by java.util.regex.Pattern to restrict the set of characters that the language models are built from.