|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.modelutils.LemmaUtils
public class LemmaUtils
Lemma utilities.
Constructor Summary | |
---|---|
protected |
LemmaUtils()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static Lemma |
getLemmaByTag(java.lang.String lemmaTag)
Get lemma from its tag. |
static Lemma[] |
getLemmata(java.util.Collection words)
Get lemmata corresponding to a batch of words. |
static Lemma[] |
getLemmata(Word[] words)
Get lemmata corresponding to a batch of words. |
static Lemma[] |
getLemmata(Work work)
Get lemmata for all words in a work. |
static Lemma[] |
getLemmataByInitialString(java.lang.String initialString)
Finds lemmas by matching an initial string of characters. |
static boolean |
lemmaExists(java.lang.String lemmaText)
See if specified lemma exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LemmaUtils()
Method Detail |
---|
public static boolean lemmaExists(java.lang.String lemmaText)
lemmaText
- The lemma text.
public static Lemma[] getLemmataByInitialString(java.lang.String initialString)
initialString
- The initial lemma text string.
public static Lemma getLemmaByTag(java.lang.String lemmaTag)
lemmaTag
- The lemma tag.
public static Lemma[] getLemmata(Work work)
work
- The work.
The lemmata are returned in the same order as the words appear in the work. In general, there will be more lemmata than words, since each word can have more than one associated lemma. For example, "can't" has two lemmata, "can" and "not".
public static Lemma[] getLemmata(java.util.Collection words)
words
- Collection of Word entries.
The lemmata are returned in the same order as the entries in the words collection In general, there will be more lemmata than words, since each word can have more than one associated lemma. For example, "can't" has two lemmata, "can" and "not".
public static Lemma[] getLemmata(Word[] words)
words
- Array of Word.
The lemmata are returned in the same order as the entries in the words array. In general, there will be more lemmata than words, since each word can have more than one associated lemma. For example, "can't" has two lemmata, "can" and "not".
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |