|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectup.ScoreChart
public class ScoreChart
A chart that holds scores of spans.
| Constructor Summary | |
|---|---|
ScoreChart(int nCategories,
int nTokens)
Construct a new chart. |
|
| Method Summary | |
|---|---|
double |
get(int cat,
int min,
int max)
Returns the score for the specified span in this chart. |
void |
set(int cat,
int min,
int max,
double score)
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 ScoreChart(int nCategories,
int nTokens)
nCategories - the number of categories that the chart should holdnTokens - the number of tokens that the chart should hold| Method Detail |
|---|
public double 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
public void set(int cat,
int min,
int max,
double score)
cat - the syntactic category of the spanmin - the leftmost position of the spanmax - the rightmost position of the spanscore - the new score for the specified span
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||