Class SwedishTableExtractor


public class SwedishTableExtractor extends TableExtractor
  • Constructor Details

    • SwedishTableExtractor

      public SwedishTableExtractor()
  • Method Details

    • getRowAndColumnContext

      protected List<String> getRowAndColumnContext(int nrow, int ncol, ArrayMatrix<org.jsoup.nodes.Element> columnHeaders)
      Overrides:
      getRowAndColumnContext in class TableExtractor
    • getInflectionDataFromCellContext

      protected List<SwedishInflectionData> getInflectionDataFromCellContext(List<String> context)
      Description copied from class: TableExtractor
      returns the inflection data that correspond to current celle context

      The cell context is a list of String that corresponds to all column and row headers + section headers in which the cell appears.

      Specified by:
      getInflectionDataFromCellContext in class TableExtractor
      Parameters:
      context - a list of Strings that represent the celle context
      Returns:
      The InflexionData corresponding to the context
    • getInflectedForms

      protected Set<String> getInflectedForms(org.jsoup.nodes.Element cell)
      Description copied from class: TableExtractor
      Extract wordforms from table cell
      Splits cell content by <br\> or comma and removes HTML formatting
      Overrides:
      getInflectedForms in class TableExtractor
      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:
      shouldProcessCell in class TableExtractor