|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Constituent | +--LexItem
A lexical item is just like a word, except that it is constrained to only one role, and can be a constituent of some sentence. This isn't really correct linguistic terminology; I'm not sure what real linguists would say to make this distinction.
Field Summary |
Fields inherited from class Constituent |
beginPos, endPos, held, NO_PROLOG, prologName, role, WILDCARD |
Constructor Summary | |
LexItem(java.lang.String newText,
java.lang.String newProlog,
Role newRole,
int begin,
boolean newHeld)
Creates a lex item from text and a role. |
|
LexItem(java.lang.String newText,
java.lang.String newProlog,
Role newRole,
int begin,
PrologEngine engine)
Creates a lex item from text and a role. |
Method Summary | |
java.util.LinkedList |
beginningsList()
Get a linkedlist of integers containing the beginning of this constituent. |
java.lang.String |
getText()
Get the text of this LexItem. |
java.lang.String |
interpretation()
Get the interpretation of this lexical item. |
Methods inherited from class Constituent |
beginning, checkHeld, end, held, inCat, length, prologName, prologName, prologStatements, syntax, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LexItem(java.lang.String newText, java.lang.String newProlog, Role newRole, int begin, PrologEngine engine)
newText
- the word.newProlog
- the prolog name of this item.newRole
- role we want.begin
- the beginning.engine
- the prolog engine, used to decide if held or not.public LexItem(java.lang.String newText, java.lang.String newProlog, Role newRole, int begin, boolean newHeld)
newText
- the word.newProlog
- the prolog name of this item.newRole
- role we want.begin
- the beginning.newHeld
- whether held or not.Method Detail |
public java.lang.String getText()
getText
in class Constituent
public java.util.LinkedList beginningsList()
beginningsList
in class Constituent
public java.lang.String interpretation()
interpretation
in class Constituent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |