Class SwedishTableExtractor

    • Constructor Detail

      • SwedishTableExtractor

        public SwedishTableExtractor()
    • Method Detail

      • 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