Class XyWeighter


  • public class XyWeighter
    extends Weighter
    The Class XyWeighter to compute the weight of nodes and subtrees in a document based on the publication of Cobena2002.
    Author:
    Martin Scharm
    • Constructor Detail

      • XyWeighter

        public XyWeighter()
    • Method Detail

      • getWeight

        public double getWeight​(DocumentNode node)
        Description copied from class: Weighter
        Computes the weight of a DocumentNode.
        Specified by:
        getWeight in class Weighter
        Parameters:
        node - the node
        Returns:
        the weight
      • getWeight

        public double getWeight​(TextNode node)
        Description copied from class: Weighter
        Computes the weight of a TextNode.
        Specified by:
        getWeight in class Weighter
        Parameters:
        node - the node
        Returns:
        the weight