Class WiktionaryExtractor
java.lang.Object
org.getalp.dbnary.languages.AbstractWiktionaryExtractor
org.getalp.dbnary.languages.gle.WiktionaryExtractor
- All Implemented Interfaces:
IWiktionaryExtractor
- Author:
- Arnaud Alet 13/07/2023
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
FieldsFields inherited from class AbstractWiktionaryExtractor
debutOrfinDecomPatternString, expander, NON_STANDARD_LANGUAGE_MAPPINGS, pageContent, wdh, wi, wiktionaryPageName, xmlCommentPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFieldExtractedT(String name) static voidstatic voidaddIgnoredL(String lang) static voidaddIgnoredS(String ignored) static voidaddIgnoredT(String ignored) voidprotected voidextractEtymology(PageIterator page) protected voidprotected voidextractNothing(PageIterator page) protected voidprotected voidextractSynonymes(WikiText.Template temp, WiktionaryExtractor.LexicalBuilder builder) protected voidprotected booleaninsideField(PageIterator page) protected voidpageAnalyzer(PageIterator page) protected StringparseLanguageTemplate(WikiText.Template template) protected Stringprotected voidprotected voidvoidprotected voidsetWiktionaryPageName(String wiktionaryPageName) protected voidswitchCurrentLanguage(String nextLanguage) protected voidtemplateDispatcher(WikiText.Token token, PageIterator page) protected static StringtoText(WikiText.WikiContent content) protected Stringurl()Methods inherited from class AbstractWiktionaryExtractor
cleanUpMarkup, cleanUpMarkup, computeRegionEnd, computeStatistics, convertToHumanReadableForm, extractData, extractDefinition, extractDefinition, extractDefinitions, extractExample, extractExample, extractNyms, extractOrthoAlt, filterOutPage, getWiktionaryPageName, populateMetadata, postProcessData, postProcessModel, removeXMLComments, stripParentheses, validateAndStandardizeLanguageCode
-
Field Details
-
currentLanguage
-
templateRender
-
-
Constructor Details
-
WiktionaryExtractor
-
-
Method Details
-
setWiktionaryIndex
- Specified by:
setWiktionaryIndexin interfaceIWiktionaryExtractor- Overrides:
setWiktionaryIndexin classAbstractWiktionaryExtractor
-
setWiktionaryPageName
- Overrides:
setWiktionaryPageNamein classAbstractWiktionaryExtractor
-
extractData
public void extractData()- Specified by:
extractDatain classAbstractWiktionaryExtractor
-
pageAnalyzer
-
switchCurrentLanguage
-
templateDispatcher
-
extractLexicalField
-
saveToDataHandler
-
saveCanonicalForm
-
extractSynonymes
-
extractTranslation
-
extractEtymology
-
extractPrononciation
-
extractNothing
-
insideField
-
toText
-
parseLanguageTemplate
-
render
-
url
-
addIgnoredT
-
addIgnoredS
-
addFieldT
-
addFieldExtractedT
-
addIgnoredL
-