Class CatalanConjugationTableExtractor
java.lang.Object
org.getalp.dbnary.morphology.RefactoredTableExtractor
org.getalp.dbnary.languages.cat.CatalanConjugationTableExtractor
- All Implemented Interfaces:
Cloneable
- Author:
- Arnaud Alet 13/07/2023
-
Field Summary
Fields inherited from class RefactoredTableExtractor
cells, entryName, globalContext, language, results -
Constructor Summary
ConstructorsConstructorDescriptionCatalanConjugationTableExtractor(String entryName, String language, List<String> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected InflectionSchemegetInflectionSchemeFromContext(List<String> context) returns the inflection that correspond to current cell contextgetRowAndColumnContext(int nrow, int ncol, ArrayMatrix<org.jsoup.nodes.Element> columnHeaders) protected booleanshouldProcessCell(org.jsoup.nodes.Element cell) true if the cell should be processed by the extractor.Methods inherited from class RefactoredTableExtractor
addToContext, clone, elementIsAValidForm, getCell, getInflectedForms, getLexicalFormsFromCell, getResult, handleNestedTables, handleSimpleCell, isHeaderCell, parseTable, standardizeValue
-
Constructor Details
-
CatalanConjugationTableExtractor
-
-
Method Details
-
getInflectionSchemeFromContext
Description copied from class:RefactoredTableExtractorreturns the inflection that correspond to current cell contextThe cell context is a list of String that corresponds to all column and row headers + section headers in which the cell appears.
- Specified by:
getInflectionSchemeFromContextin classRefactoredTableExtractor- Parameters:
context- a list of Strings that represent the celle context- Returns:
- The set of lexical forms corresponding to the context
-
getRowAndColumnContext
protected List<String> getRowAndColumnContext(int nrow, int ncol, ArrayMatrix<org.jsoup.nodes.Element> columnHeaders) - Overrides:
getRowAndColumnContextin classRefactoredTableExtractor
-
shouldProcessCell
protected boolean shouldProcessCell(org.jsoup.nodes.Element cell) Description copied from class:RefactoredTableExtractortrue if the cell should be processed by the extractor. This is called for a normal cell and not for a header cell, it allows specific subclasses to further filter out cells based on their content.- Overrides:
shouldProcessCellin classRefactoredTableExtractor- Parameters:
cell- the td element to be examined- Returns:
- true if the cell should be processed
-