edu.mit.jmwe.detect.score
Class VarianceScore<T extends IToken>
java.lang.Object
edu.mit.jmwe.detect.score.AbstractScorer<IMWE<T>>
edu.mit.jmwe.detect.score.VarianceScore<T>
- Type Parameters:
T
- the type of token used by this scorer
- All Implemented Interfaces:
- IScorer<IMWE<T>>, Comparator<IMWE<T>>
public class VarianceScore<T extends IToken>
- extends AbstractScorer<IMWE<T>>
Scores each MWE with its index variance.
- Since:
- jMWE 1.0.0
- Version:
- $Id: VarianceScore.java 598 2011-05-06 03:33:34Z markaf $
- Author:
- M.A. Finlayson
Constructor Summary |
VarianceScore(List<T> sentence)
Constructs a new variance scorer for the specified sentence |
Method Summary |
double |
score(IMWE<T> mwe)
Score the specified object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
idxMap
protected final Map<T extends IToken,Integer> idxMap
VarianceScore
public VarianceScore(List<T> sentence)
- Constructs a new variance scorer for the specified sentence
- Parameters:
sentence
- the sentence for the scorer- Since:
- jMWE 1.0.0
score
public double score(IMWE<T> mwe)
- Description copied from interface:
IScorer
- Score the specified object. The object may be
null
,
depending on the implementation.
- Parameters:
mwe
- the object to be scored
- Returns:
- the score
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.