|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttp.model.FeatureFrequency
public class FeatureFrequency
Class representing a feature and its frequency in TF or TFIDF model.
Constructor Summary | |
---|---|
FeatureFrequency(java.lang.String feature,
int frequency)
Constructor of the class |
Method Summary | |
---|---|
java.lang.String |
getFeature()
Gets a word, which is represented by this feature. |
int |
getRate()
Gets a binary frequency of this feature. |
float |
getTF()
Gets a TF weight of this feature. |
float |
getTFidf()
Gets a TF-IDF weight of this feature. |
void |
setFeature(java.lang.String feature)
Sets a word, which is represented by this feature. |
void |
setRate(int rate)
Sets a binary frequency of this feature. |
void |
setTF(float tf)
Sets a TF weight for this feature. |
void |
setTFidf(float tfidf)
Sets a TF-IDF weight for this feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureFrequency(java.lang.String feature, int frequency)
feature
- a feature (word)frequency
- a value of TF or TFIDF weightMethod Detail |
---|
public java.lang.String getFeature()
getFeature
in interface FeatureInterface
public int getRate()
getRate
in interface FeatureInterface
public void setFeature(java.lang.String feature)
setFeature
in interface FeatureInterface
feature
- a feature (word)public void setRate(int rate)
setRate
in interface FeatureInterface
rate
- value of frequency (0 or 1)public float getTFidf()
public void setTFidf(float tfidf)
tfidf
- value of TF-IDF weightpublic float getTF()
public void setTF(float tf)
tf
- value of TF weight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |