Package org.getalp.dbnary.languages.fra
Class WiktionaryExtractor
- java.lang.Object
-
- org.getalp.dbnary.languages.AbstractWiktionaryExtractor
-
- org.getalp.dbnary.languages.fra.WiktionaryExtractor
-
- All Implemented Interfaces:
IWiktionaryExtractor
public class WiktionaryExtractor extends AbstractWiktionaryExtractor
- Author:
- serasset
-
-
Field Summary
Fields Modifier and Type Field Description protected FrenchDefinitionExtractorWikiModel
definitionExpander
protected ExampleExpanderWikiModel
exampleExpander
protected ExpandAllWikiModel
glossExtractor
protected InflectionExtractorWikiModel
morphologyExtractor
protected VerbalInflexionExtractorWikiModel
verbalInflectionExtractor
-
Fields inherited from class org.getalp.dbnary.languages.AbstractWiktionaryExtractor
debutOrfinDecomPatternString, expander, NON_STANDARD_LANGUAGE_MAPPINGS, pageContent, wdh, wi, wiktionaryPageName, xmlCommentPattern
-
-
Constructor Summary
Constructors Constructor Description WiktionaryExtractor(IWiktionaryDataHandler wdh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extractData()
void
extractDefinition(String definition, int defLevel)
protected void
extractDefinitions(WikiText.WikiSection section)
void
extractExample(String example)
protected void
extractPronunciation(WikiText.WikiContent content)
void
postProcessData(String dumpFileVersion)
void
setWiktionaryIndex(WiktionaryPageSource wi)
protected void
setWiktionaryPageName(String wiktionaryPageName)
-
Methods inherited from class org.getalp.dbnary.languages.AbstractWiktionaryExtractor
cleanUpMarkup, cleanUpMarkup, computeRegionEnd, computeStatistics, convertToHumanReadableForm, extractData, extractDefinition, extractDefinitions, extractExample, extractNyms, extractOrthoAlt, filterOutPage, getWiktionaryPageName, populateMetadata, postProcessModel, removeXMLComments, stripParentheses, validateAndStandardizeLanguageCode
-
-
-
-
Field Detail
-
exampleExpander
protected ExampleExpanderWikiModel exampleExpander
-
definitionExpander
protected FrenchDefinitionExtractorWikiModel definitionExpander
-
morphologyExtractor
protected InflectionExtractorWikiModel morphologyExtractor
-
verbalInflectionExtractor
protected VerbalInflexionExtractorWikiModel verbalInflectionExtractor
-
glossExtractor
protected ExpandAllWikiModel glossExtractor
-
-
Constructor Detail
-
WiktionaryExtractor
public WiktionaryExtractor(IWiktionaryDataHandler wdh)
-
-
Method Detail
-
setWiktionaryIndex
public void setWiktionaryIndex(WiktionaryPageSource wi)
- Specified by:
setWiktionaryIndex
in interfaceIWiktionaryExtractor
- Overrides:
setWiktionaryIndex
in classAbstractWiktionaryExtractor
-
setWiktionaryPageName
protected void setWiktionaryPageName(String wiktionaryPageName)
- Overrides:
setWiktionaryPageName
in classAbstractWiktionaryExtractor
-
extractData
public void extractData()
- Specified by:
extractData
in classAbstractWiktionaryExtractor
-
extractPronunciation
protected void extractPronunciation(WikiText.WikiContent content)
-
extractDefinitions
protected void extractDefinitions(WikiText.WikiSection section)
-
extractExample
public void extractExample(String example)
- Overrides:
extractExample
in classAbstractWiktionaryExtractor
-
extractDefinition
public void extractDefinition(String definition, int defLevel)
- Overrides:
extractDefinition
in classAbstractWiktionaryExtractor
-
postProcessData
public void postProcessData(String dumpFileVersion)
- Specified by:
postProcessData
in interfaceIWiktionaryExtractor
- Overrides:
postProcessData
in classAbstractWiktionaryExtractor
-
-