Class CatalanConjugationTableExtractor

java.lang.Object
org.getalp.dbnary.morphology.RefactoredTableExtractor
org.getalp.dbnary.languages.cat.CatalanConjugationTableExtractor
All Implemented Interfaces:
Cloneable

public class CatalanConjugationTableExtractor extends RefactoredTableExtractor
Author:
Arnaud Alet 13/07/2023
  • Constructor Details

    • CatalanConjugationTableExtractor

      public CatalanConjugationTableExtractor(String entryName, String language, List<String> context)
  • Method Details

    • getInflectionSchemeFromContext

      protected InflectionScheme getInflectionSchemeFromContext(List<String> context)
      Description copied from class: RefactoredTableExtractor
      returns the inflection that correspond to current cell 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:
      getInflectionSchemeFromContext in class RefactoredTableExtractor
      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:
      getRowAndColumnContext in class RefactoredTableExtractor
    • shouldProcessCell

      protected boolean shouldProcessCell(org.jsoup.nodes.Element cell)
      Description copied from class: RefactoredTableExtractor
      true 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:
      shouldProcessCell in class RefactoredTableExtractor
      Parameters:
      cell - the td element to be examined
      Returns:
      true if the cell should be processed