Class Weighter

  • Direct Known Subclasses:
    SemsWeighter, XyWeighter

    public abstract class Weighter
    extends Object
    The Class Weighter to compute the weight of nodes and subtrees in a document.
    Author:
    Martin Scharm
    • Constructor Detail

      • Weighter

        public Weighter()
    • Method Detail

      • getWeight

        public abstract double getWeight​(DocumentNode node)
        Computes the weight of a DocumentNode.
        Parameters:
        node - the node
        Returns:
        the weight
      • getWeight

        public abstract double getWeight​(TextNode node)
        Computes the weight of a TextNode.
        Parameters:
        node - the node
        Returns:
        the weight