|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatapreparation.weighting.TermCollection
public class TermCollection
Class implementing a term collection. A term collection consists of a list of terms with total frequence (sum of frequence in all texts) and the number of text the term is present in.
Constructor Summary | |
---|---|
TermCollection()
Constructor creating a new hashtable for storing terms. |
Method Summary | |
---|---|
void |
fillCollection(DataSet set)
Method for filling the collection. |
int |
getFrequency(java.lang.String term)
Method for getting the total frequency of a given term. |
int |
getNofTexts(java.lang.String term)
Method for getting the number of texts the given term is present in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TermCollection()
Method Detail |
---|
public void fillCollection(DataSet set)
set
- The datasetpublic int getFrequency(java.lang.String term)
term
- The term
public int getNofTexts(java.lang.String term)
term
- The term
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |