|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.harness.result.error.AbstractErrorDetector
edu.mit.jmwe.harness.result.error.DetectorDisagreement
public class DetectorDisagreement
Counts and stores those MWEs that were not found by the backing detector. Used to identify those MWEs that two detectors disagree on.
Field Summary | |
---|---|
protected IMWEDetector |
d
|
static String |
ID
The ID for this error detector, "edu.mit.jmwe.error.Disagree" |
Constructor Summary | |
---|---|
DetectorDisagreement(IMWEDetector d)
Constructs a new error detector that uses the specified MWE detector for backing. |
Method Summary | ||
---|---|---|
|
detect(ISentenceResult<T,S> result)
Identifies the multi-word expressions in a unit result that fall under the specific error class this detector identifies. |
|
IMWEDetector |
getDetector()
Returns the MWE detector for this error detector. |
|
static
|
isProblem(IMWE<T> mwe,
ISentenceResult<T,S> result,
IMWEDetector detector)
Determines if the specified MWE is a problem relative to the specified sentence according to this error class. |
Methods inherited from class edu.mit.jmwe.harness.result.error.AbstractErrorDetector |
---|
getID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
protected final IMWEDetector d
Constructor Detail |
---|
public DetectorDisagreement(IMWEDetector d)
d
- the detector used by this error detector
NullPointerException
- if the specified detector is null
Method Detail |
---|
public IMWEDetector getDetector()
null
public <T extends IToken,S extends IMarkedSentence<T>> IErrorResult<T> detect(ISentenceResult<T,S> result)
IErrorDetector
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
unit
public static <T extends IToken,S extends IMarkedSentence<T>> boolean isProblem(IMWE<T> mwe, ISentenceResult<T,S> result, IMWEDetector detector)
T
- the token type of the MWEmwe
- the MWE in question, may not be null
true
if the MWE is a problem; false
otherwise.
NullPointerException
- if the specified mwe is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |