|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ISSearch.ISFeature
Sample class that implements the ISFeatureInterface and represents one feature in the ISSearch search engine.
Field Summary | |
private double |
rtf
The Relative Term Frequency (RTF) weight of the feature in the document. |
private String |
term
The term that is represented by this feature in the bag-of-words model. |
private double |
tf
The absolute Term Frequency (TF) weight of the feature in the document. |
Constructor Summary | |
ISFeature()
|
Method Summary | |
double |
getRTF()
Returns the Relative Term Frequency (RTF) weight of the feature in the document. |
String |
getTerm()
Returns the term that is represented by this feature in the bag-of-words model. |
double |
getTF()
Returns the absolute Term Frequency (TF) weight of the feature in the document. |
void |
setRTF(double r)
Sets the RTF (Relative Term Frequency) weight of the feature. |
void |
setTerm(String t)
Sets the term of the feature. |
void |
setTF(double t)
Sets the TF (term frequency) weight of the feature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String term
private double tf
private double rtf
Constructor Detail |
public ISFeature()
Method Detail |
public double getRTF()
getRTF
in interface ISFeatureInterface
public double getTF()
getTF
in interface ISFeatureInterface
public String getTerm()
getTerm
in interface ISFeatureInterface
public void setRTF(double r)
r
- The RTF weight of the feature.public void setTF(double t)
t
- The TF weight of the feature.public void setTerm(String t)
t
- The term (word stem) of the feature.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |