public class Longest extends ResolveByScore
chooseLargest
Constructor and Description |
---|
Longest(IMWEDetector detector)
Constructs a new instance of this detector.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends IToken> |
getScorer(java.util.List<T> scorer)
Returns the scoring function for this filter.
|
detect
getWrappedDetector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWrappedDetector
public Longest(IMWEDetector detector)
detector
- the wrapped detector; may not be null
protected <T extends IToken> IScorer<IMWE<T>> getScorer(java.util.List<T> scorer)
ResolveByScore
getScorer
in class ResolveByScore
T
- they type of the tokenscorer
- the sentence to be scoredCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.