Package org.languagetool.tools
Class DictionaryBuilder
java.lang.Object
org.languagetool.tools.DictionaryBuilder
- Direct Known Subclasses:
DictionaryExporter
,POSDictionaryBuilder
,SpellDictionaryBuilder
,SynthDictionaryBuilder
Create a Morfologik binary dictionary from plain text data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private String
private final Pattern
private final Properties
private final Pattern
private static final morfologik.tools.SerializationFormat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected File
addFreqData
(File dictFile, boolean useSeparator) protected File
protected File
protected File
convertTabToSeparator
(File inputFile) protected @Nullable String
protected String
protected boolean
protected boolean
isOptionTrue
(String option) protected void
readFreqList
(File freqListFile) protected void
setOutputFilename
(String outputFilename)
-
Field Details
-
props
-
FREQ_RANGES_IN
private static final int FREQ_RANGES_IN- See Also:
-
FREQ_RANGES_OUT
private static final int FREQ_RANGES_OUT- See Also:
-
FIRST_RANGE_CODE
private static final int FIRST_RANGE_CODE- See Also:
-
serializationFormat
private static final morfologik.tools.SerializationFormat serializationFormat -
freqList
-
pFreqEntry
-
pTaggerEntry
-
outputFilename
-
-
Constructor Details
-
DictionaryBuilder
- Throws:
IOException
-
-
Method Details
-
setOutputFilename
-
getOutputFilename
-
buildDict
- Throws:
Exception
-
buildFSA
- Throws:
Exception
-
getOption
-
hasOption
-
isOptionTrue
-
readFreqList
-
addFreqData
- Throws:
IOException
-
convertTabToSeparator
- Throws:
RuntimeException
IOException
-