edu.stanford.nlp.util
Interface Weighted

All Known Implementing Classes:
WeightedFollowedTaggedWord

public interface Weighted

Weighted. An interface for representing a weighted things, such as a feature (as opposed to a probability/score).


Method Summary
 void setWeight(double weight)
          Set the weight of this thing
 double weight()
          Return the weight of this thing
 

Method Detail

weight

public double weight()
Return the weight of this thing

Returns:
the weight

setWeight

public void setWeight(double weight)
Set the weight of this thing

Parameters:
weight - the weight


Stanford NLP Group