-
- All Implemented Interfaces:
public class LanguageModelFilesWriter extends FilesWriter
-
-
Field Summary
Fields Modifier and Type Field Description public final static LanguageModelFilesWriterINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitcreateAndWriteLanguageModelFiles(Path inputFilePath, Charset inputFileCharset, Path outputDirectoryPath, Language language, String charClass)Creates language model files and writes them to a directory. -
-
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.
-
-
-
-