T
- the type of token used by this scorerpublic class StartingIndexScore<T extends IToken> extends AbstractScorer<IMWE<T>>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<T,java.lang.Integer> |
idxMap |
Constructor and Description |
---|
StartingIndexScore(java.util.List<T> sentence)
Constructs a new index scorer for the specified sentence.
|
Modifier and Type | Method and Description |
---|---|
double |
score(IMWE<T> mwe)
Score the specified object.
|
compare
public StartingIndexScore(java.util.List<T> sentence)
sentence
- the sentence for the scorerCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.