public interface IErrorDetector extends IHasID
IMWEDetector
by analyzing the ISentenceResult
obtained by
running the detector over a marked sentence using a test harness.
The ID should follow the reverse namespace pattern. For example, the ID for an error class "A" should be "edu.mit.jmwe.error.A".
Modifier and Type | Method and Description |
---|---|
<T extends IToken,S extends IMarkedSentence<T>> |
detect(ISentenceResult<T,S> result)
Identifies the multi-word expressions in a unit result that fall under
the specific error class this detector identifies.
|
<T extends IToken,S extends IMarkedSentence<T>> IErrorResult<T> detect(ISentenceResult<T,S> result)
T
- the type of tokens contained in the unit.S
- the type of marked sentence whose results are stored. Is
parameterized by tokens of type T.result
- the sentence result obtained by running an IMWEDetector over a
unitCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.