|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Constituent
Holds a constituent, any linguistically coherent section of a sentence. Anything which has a syntactic category is a constituent.
| Field Summary | |
protected int |
beginPos
|
protected int |
endPos
|
protected boolean |
held
|
protected static java.lang.String |
NO_PROLOG
|
protected java.lang.String |
prologName
|
protected Role |
role
|
protected static java.lang.String |
WILDCARD
|
| Constructor Summary | |
Constituent(int begin,
int end,
Role newRole,
java.lang.String newProlog)
Creates a constituent with beginning and ending points. |
|
| Method Summary | |
int |
beginning()
Finds the beginning of this constituent. |
abstract java.util.LinkedList |
beginningsList()
Get a list backed by the beginnings list. |
protected boolean |
checkHeld(PrologEngine engine)
Checks if the constituent is held by querying prolog. |
int |
end()
Finds the end of this constituent. |
abstract java.lang.String |
getText()
Return a string of the 'guts' of this constituent. |
boolean |
held()
Determine if this constituent is held in a special list for raising. |
boolean |
inCat(java.lang.String cat)
Checks whether this constituent is in some syntactic category. |
abstract java.lang.String |
interpretation()
Interpret this constituent. |
int |
length()
Finds the length of this constituent, being (end-beginning). |
java.lang.String |
prologName()
Return a prolog name for this constituent. |
java.lang.String |
prologName(boolean info)
Return a prolog name for this constituent, tagged with more info to prevent mistakes. |
java.lang.String |
prologStatements()
Get the prolog statements that apply to this constituent item. |
java.lang.String |
syntax()
Get the syntax of this constituent. |
java.lang.String |
toString()
Return a string of this constituent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int beginPos
protected int endPos
protected Role role
protected java.lang.String prologName
protected boolean held
protected static final java.lang.String WILDCARD
protected static final java.lang.String NO_PROLOG
| Constructor Detail |
public Constituent(int begin,
int end,
Role newRole,
java.lang.String newProlog)
begin - the beginning.end - the end.newRole - the new role.newProlog - the new prolog name.| Method Detail |
public int beginning()
public int end()
public int length()
public boolean held()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String getText()
public java.lang.String prologName(boolean info)
info - whether we need more info.
public java.lang.String prologName()
public java.lang.String prologStatements()
public java.lang.String syntax()
public boolean inCat(java.lang.String cat)
cat - the category.public abstract java.util.LinkedList beginningsList()
public abstract java.lang.String interpretation()
protected boolean checkHeld(PrologEngine engine)
engine - the prolog engine.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||