|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.procasor.core.helper.WordHelper
Class with static methods for work with Word class.
Field Summary | |
static int |
CONDITION_LABEL
Constant |
static int |
GOTO_TARGET
Constant |
static java.lang.String[] |
GUI_WORD_TYPES
Type of words to be shown in GUI |
static int |
INDIRECT_OBJECT
Constant |
static int |
NOT_IMPORTANT
Constant |
static int |
REPRESENTATIVE_OBJECT
Constant |
static int |
SUBJECT
Constant |
static int |
VERB
Constant |
Method Summary | |
static Word |
createWord(int index,
java.lang.String word,
java.lang.String lemma,
java.lang.String pos)
Returns a new Word object with given parameters |
static java.lang.String |
getGuiIdentifesAs(Word word)
Returns identifies as for showing in gui. |
static int |
getWordIdentifiedAs(Word w)
Gets the words role identified by the analyser. |
static void |
setWordIdentifiedAs(Word w,
int role)
Sets the words identified role in sentence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NOT_IMPORTANT
public static final int SUBJECT
public static final int INDIRECT_OBJECT
public static final int VERB
public static final int REPRESENTATIVE_OBJECT
public static final int GOTO_TARGET
public static final int CONDITION_LABEL
public static final java.lang.String[] GUI_WORD_TYPES
Method Detail |
public static Word createWord(int index, java.lang.String word, java.lang.String lemma, java.lang.String pos)
index
- words index in sentenceword
- actual form of the wordlemma
- lemma of the wordpos
- pos of the word
public static void setWordIdentifiedAs(Word w, int role)
w
- the wordrole
- role to be set. Should be a constant defined in WordHelper classpublic static int getWordIdentifiedAs(Word w)
w
- the word
public static java.lang.String getGuiIdentifesAs(Word word)
word
- word which types is required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |