public class DocumentView
extends java.lang.Object
Constructor and Description |
---|
DocumentView() |
Modifier and Type | Method and Description |
---|---|
void |
clearOccurrenceIndex()
Nullifies the inner occurrence list so as to frees memory.
|
java.util.Iterator<TermOccurrence> |
contextIterator(TermOccurrence o,
int contextSize) |
java.util.Iterator<TermOccurrence> |
getOccurrenceContext(TermOccurrence occurrence,
int contextSize)
Produce an iterator over all single-word term occurrences in the scope
of a given occurrence.
|
java.util.List<TermOccurrence> |
getOccurrences() |
int |
indexTermOccurrence(TermOccurrence termOccurrence) |
public java.util.Iterator<TermOccurrence> getOccurrenceContext(TermOccurrence occurrence, int contextSize)
occurrence
- the occurrence whose context iterator will be computed by the methodcoTermsType
- the type of occurrence to put in contextcontextSize
- the radius (i.e. half the maximum number of wingle-word terms) of the context window sizeOccurrenceType
public int indexTermOccurrence(TermOccurrence termOccurrence)
termOccurrence
- public java.util.List<TermOccurrence> getOccurrences()
public void clearOccurrenceIndex()
public java.util.Iterator<TermOccurrence> contextIterator(TermOccurrence o, int contextSize)