Class SemsWeighter


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

      • SemsWeighter

        public SemsWeighter()
    • 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