Class Extractor
java.lang.Object
org.getalp.dbnary.cli.mixins.Extractor
- Direct Known Subclasses:
ExtractWiktionary, GetExtractedSemnet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExtractionFeaturesMixinprotected SingleLanguageAsOptionMixinprotected DBnaryprotected picocli.CommandLine.Model.CommandSpecprotected org.getalp.dbnary.api.IWiktionaryDataHandlerprotected org.getalp.dbnary.api.IWiktionaryExtractorprotected WiktionaryIndexMixin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidpostProcessAfterExtraction(String version) protected IntegersetupHandlers(String tdbDir) Setup the extraction handlers
-
Field Details
-
spec
protected picocli.CommandLine.Model.CommandSpec spec -
parent
-
features
-
wi
-
lm
-
we
protected org.getalp.dbnary.api.IWiktionaryExtractor we -
wdh
protected org.getalp.dbnary.api.IWiktionaryDataHandler wdh
-
-
Constructor Details
-
Extractor
public Extractor()
-
-
Method Details
-
setupHandlers
Setup the extraction handlers- Parameters:
tdbDir- the directory containing the TDB database- Returns:
- 0 if successful, -1 otherwise
- Throws:
NoWiktionaryExtractorException- if the extraction handlers could not be set up
-
postProcessAfterExtraction
-
cleanupHandlers
protected void cleanupHandlers()
-