public class TermSeen
extends java.lang.Object
Factory When calculating co-occurrences a TermSeen a co-occurs with another TermSeen b iff b.startPos - a.endPos <= w.
Instances of this class can be cleared out after processing a document in the collection, because they are specific only to that document., Nina Tahmasebi, L3S Research Center
public TermSeen(Term term, int startPos, int endPos)
term - final term to be storedstartPos - position in the line where the first word of term
was encounteredendPos - position in the line where the last word of term was
encounteredpublic Term getTerm()
public void setTerm(Term term)
term - the new term to be usedpublic int getStartPos()
public int getEndPos()
public java.lang.String toString()
toString in class java.lang.Object