Package org.languagetool.tools
Class POSDictionaryBuilder
- java.lang.Object
-
- org.languagetool.tools.POSDictionaryBuilder
-
public final class POSDictionaryBuilder extends Object
Create a Morfologik binary dictionary from plain text data.- Since:
- public since 2.8
-
-
Constructor Summary
Constructors Constructor Description POSDictionaryBuilder(File infoFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected File
addFreqData(File dictFile, boolean useSeparator)
File
build(File dictFile)
protected File
buildDict(File inputFile)
protected File
buildFSA(File inputFile)
protected File
convertTabToSeparator(File inputFile)
protected @Nullable String
getOption(String option)
protected String
getOutputFilename()
protected boolean
hasOption(String option)
protected boolean
isOptionTrue(String option)
static void
main(String[] args)
protected void
readFreqList(File freqListFile)
protected void
setOutputFilename(String outputFilename)
-
-
-
Constructor Detail
-
POSDictionaryBuilder
public POSDictionaryBuilder(File infoFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setOutputFilename
protected void setOutputFilename(String outputFilename)
-
getOutputFilename
protected String getOutputFilename()
-
hasOption
protected boolean hasOption(String option)
-
isOptionTrue
protected boolean isOptionTrue(String option)
-
readFreqList
protected void readFreqList(File freqListFile)
-
addFreqData
protected File addFreqData(File dictFile, boolean useSeparator) throws IOException
- Throws:
IOException
-
convertTabToSeparator
protected File convertTabToSeparator(File inputFile) throws RuntimeException, IOException
- Throws:
RuntimeException
IOException
-
-