|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.modelutils.CollocateUtils
public class CollocateUtils
Collocate utilities.
Constructor Summary | |
---|---|
protected |
CollocateUtils()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static java.util.Collection |
getColocates(PersistenceManager pm,
java.util.Collection words,
int distance)
Gets colocates for a collection of words. |
static java.util.Collection |
getColocates(PersistenceManager pm,
java.util.Collection words,
int leftSpan,
int rightSpan)
Gets colocates for a collection of words. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CollocateUtils()
Method Detail |
---|
public static java.util.Collection getColocates(PersistenceManager pm, java.util.Collection words, int distance)
pm
- The persistence manager in which to load
the collocates. May be null.words
- Collection of word occurrences.distance
- Max distance.
word occurrences
which are within "distance" words
of one of the specified words. May be empty.
Null if the collocates could not be found because
of a databae problem.
PersistenceException
public static java.util.Collection getColocates(PersistenceManager pm, java.util.Collection words, int leftSpan, int rightSpan)
pm
- The persistence manager in which to load
the collocates. May be null.words
- Collection of word occurrences.leftSpan
- Max distance to the left.rightSpan
- Max distance to the right.
word occurrences
which are within "leftSpan" to
"rightSpan" distance of one of the specified words.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |