edu.mit.jmwe.harness.result.error
Interface IErrorDetector

All Superinterfaces:
IHasID
All Known Implementing Classes:
AbstractErrorDetector, AllStopWords, CommonErrorDetector, CompositeErrorDetector, DetectorDisagreement, ExtraPOS, ExtraPrep, InflectionError, InflectionPatternError, InterstitialTokens, MissingFromIndex, OutOfOrder, PNounLong, PNounShort, UntaggedPNoun, VBDVBN, WrongPOS

public interface IErrorDetector
extends IHasID

Error detectors look for errors made by an 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".

Since:
jMWE 1.0.0
Version:
$Id: IErrorDetector.java 615 2011-05-07 00:02:36Z markaf $
Author:
N. Kulkarni

Method Summary
<T extends IToken,S extends IMarkedSentence<T>>
IErrorResult<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.
 
Methods inherited from interface edu.mit.jmwe.data.IHasID
getID
 

Method Detail

detect

<T extends IToken,S extends IMarkedSentence<T>> IErrorResult<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.

Type Parameters:
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.
Parameters:
result - the sentence result obtained by running an IMWEDetector over a unit
Returns:
an error result containing the MWEs identified by this error detector
Since:
jMWE 1.0.0


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.