|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatamodel.Text
public class Text
Class representing a text. This entity contains the text and the specific terms in it.
Constructor Summary | |
---|---|
Text(int tid,
java.lang.String text)
Constructor creating a new text. |
Method Summary | |
---|---|
void |
addTerm(java.lang.String term,
int frequency,
double weight)
Method for adding a term to the text model. |
void |
appendText(java.lang.String text)
|
void |
changeText(java.lang.String text)
|
int |
getCluster()
|
int |
getNoOfTokens()
|
java.lang.String |
getPrintableTerms()
Method returning a printable report of the terms in the text. |
java.util.ArrayList |
getTerms()
Method returning all terms in the text. |
int |
getTid()
Method returning the timestamp. |
boolean |
hasTerms()
Method for getting wether terms are extracted or not. |
void |
removeAllTerms()
Method used to reset the terms. |
Term |
removeTerm(Term term)
Method for removing a term from the text. |
void |
setCluster(int cluster)
|
java.lang.String |
toString()
Method returning a string representation of the text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Text(int tid, java.lang.String text)
tid
- The timestamptext
- The textMethod Detail |
---|
public void changeText(java.lang.String text)
public void appendText(java.lang.String text)
public int getNoOfTokens()
public void addTerm(java.lang.String term, int frequency, double weight)
term
- The termpublic Term removeTerm(Term term)
term
- The term to be removed
public void removeAllTerms()
public int getTid()
public java.util.ArrayList getTerms()
public boolean hasTerms()
public java.lang.String getPrintableTerms()
public java.lang.String toString()
toString
in class java.lang.Object
public int getCluster()
public void setCluster(int cluster)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |