public class SmallestVariance extends ResolveByScore
chooseLargest
Constructor and Description |
---|
SmallestVariance(IMWEDetector detector)
A new resolver that wraps the specified detector.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends IToken> |
getScorer(java.util.List<T> sentence)
Returns the scoring function for this filter.
|
detect
getWrappedDetector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWrappedDetector
public SmallestVariance(IMWEDetector detector)
detector
- the wrapped detector, may not be null
java.lang.NullPointerException
- if the specified detector is null
protected <T extends IToken> IScorer<IMWE<T>> getScorer(java.util.List<T> sentence)
ResolveByScore
getScorer
in class ResolveByScore
T
- they type of the tokensentence
- the sentence to be scoredCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.