|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--Constituent
|
+--Phrase
A phrase is a list of constituents, the syntactic elements of a sentence.
| Field Summary |
| Fields inherited from class Constituent |
beginPos, endPos, held, NO_PROLOG, prologName, role, WILDCARD |
| Constructor Summary | |
Phrase(Constituent[] newConstituents,
Role newRole,
int begin,
int end,
PrologEngine engine)
Create a phrase with the given role and constituents. |
|
| Method Summary | |
java.util.LinkedList |
beginningsList()
Get a list backed by the beginnings list. |
boolean |
consistent()
Return if this phrase is consistent semantically. |
Constituent |
firstRaisedAux()
Deprecated. because it's a HACK. |
java.lang.String |
getText()
Get the string representation of the constituents of this constituent. |
java.lang.String |
interpretation()
Interpret this constituent. |
| 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 Phrase(Constituent[] newConstituents,
Role newRole,
int begin,
int end,
PrologEngine engine)
newConstituents - the constituents of this phrase.newRole - the role of this phrase.begin - the beginning.end - the end.engine - the prolog engine, used to find if this is held or not.| Method Detail |
public java.lang.String getText()
getText in class Constituentpublic java.util.LinkedList beginningsList()
beginningsList in class Constituentpublic boolean consistent()
public java.lang.String interpretation()
interpretation in class Constituentpublic Constituent firstRaisedAux()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||