Package com.yahoo.fsa.topicpredictor
Class PredictedTopic
java.lang.Object
com.yahoo.fsa.topicpredictor.PredictedTopic
Class encapsulation of a predicted topic. A topic has a weight and
a term vector string of topicSegments.
- Author:
- gjoranv
-
Constructor Summary
ConstructorDescriptionPredictedTopic
(String topic, double weight) PredictedTopic
(String topic, double weight, String vector) -
Method Summary
-
Constructor Details
-
PredictedTopic
-
PredictedTopic
-
-
Method Details
-
getTopic
Returns the topic -
getWeight
public double getWeight()Returns the weight -
getVector
Returns the vector -
setWeight
public void setWeight(double weight) Sets the weight -
addWeight
public void addWeight(double weight) Adds to the weight -
setVector
Sets the vector -
compareDescendWeight
Compares this topic to another topic, according to weight descending
-