Class SwedishTableExtractor
java.lang.Object
org.getalp.dbnary.morphology.HtmlTableHandler
org.getalp.dbnary.morphology.TableExtractor
org.getalp.dbnary.languages.swe.SwedishTableExtractor
-
Field Summary
Fields inherited from class TableExtractor
alreadyParsedTables, currentEntry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInflectedForms(org.jsoup.nodes.Element cell) Extract wordforms from table cell
Splits cell content by <br\> or comma and removes HTML formattingprotected List<SwedishInflectionData> getInflectionDataFromCellContext(List<String> context) returns the inflection data that correspond to current celle contextgetRowAndColumnContext(int nrow, int ncol, ArrayMatrix<org.jsoup.nodes.Element> columnHeaders) protected booleanshouldProcessCell(org.jsoup.nodes.Element cell) Methods inherited from class TableExtractor
addToContext, decodeH2Context, handleNestedTables, handleSimpleCell, isHeaderCell, isNormalCell, parseHTML, parseTable, shouldIgnoreCurrentH2Methods inherited from class HtmlTableHandler
explodeTable, getBackgroundColor
-
Constructor Details
-
SwedishTableExtractor
public SwedishTableExtractor()
-
-
Method Details
-
getRowAndColumnContext
protected List<String> getRowAndColumnContext(int nrow, int ncol, ArrayMatrix<org.jsoup.nodes.Element> columnHeaders) - Overrides:
getRowAndColumnContextin classTableExtractor
-
getInflectionDataFromCellContext
Description copied from class:TableExtractorreturns the inflection data that correspond to current celle 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:
getInflectionDataFromCellContextin classTableExtractor- Parameters:
context- a list of Strings that represent the celle context- Returns:
- The InflexionData corresponding to the context
-
getInflectedForms
Description copied from class:TableExtractorExtract wordforms from table cell
Splits cell content by <br\> or comma and removes HTML formatting- Overrides:
getInflectedFormsin classTableExtractor- Parameters:
cell- the current cell in the inflection table- Returns:
- Set of wordforms (Strings) from this cell
-
shouldProcessCell
protected boolean shouldProcessCell(org.jsoup.nodes.Element cell) - Overrides:
shouldProcessCellin classTableExtractor
-