|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.BackpointerChart
public class BackpointerChart
A chart that holds backpointers.
Constructor Summary | |
---|---|
BackpointerChart(int nCategories,
int nTokens)
Construct a new chart. |
Method Summary | |
---|---|
Backpointer |
get(int cat,
int min,
int max)
Returns the backpointer for the specified span in this chart. |
void |
set(int cat,
int min,
int max,
Backpointer bp)
Replaces the backpointer for the specified span in this chart with the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackpointerChart(int nCategories, int nTokens)
nCategories
- the number of categories that the chart should holdnTokens
- the number of tokens that the chart should holdMethod Detail |
---|
public Backpointer get(int cat, int min, int max)
cat
- the syntactic category of the spanmin
- the leftmost position of the spanmax
- the rightmost position of the span
null
in
case this chart does not contain a backpointer for the specified spanpublic void set(int cat, int min, int max, Backpointer bp)
cat
- the syntactic category of the spanmin
- the leftmost position of the spanmax
- the rightmost position of the spanbp
- the new backpointer for the specified span
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |