Package de.unirostock.sems.xmlutils.alg
Class SemsWeighter
- java.lang.Object
-
- de.unirostock.sems.xmlutils.alg.Weighter
-
- de.unirostock.sems.xmlutils.alg.SemsWeighter
-
public class SemsWeighter extends Weighter
The Class SemsWeighter to compute the weight of nodes and subtrees in a document.- Author:
- Martin Scharm
-
-
Constructor Summary
Constructors Constructor Description SemsWeighter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetWeight(DocumentNode node)Computes the weight of a DocumentNode.doublegetWeight(TextNode node)Computes the weight of a TextNode.
-
-
-
Method Detail
-
getWeight
public double getWeight(DocumentNode node)
Description copied from class:WeighterComputes the weight of a DocumentNode.
-
-