public interface ITestHarness
IMWEDetector by comparing
the multi-word expressions it finds to those found in an IAnswerKey
object. Calculates the precision and recall scores of the detector.| Modifier and Type | Method and Description |
|---|---|
<T extends IToken,S extends IMarkedSentence<T>> |
run(IMWEDetector detector,
IResultBuilder<T,S> results,
java.util.Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb)
Runs the detector in the test harness and stores the results in the
provided result builder.
|
<T extends IToken,S extends IMarkedSentence<T>> |
run(java.util.Map<IMWEDetector,IResultBuilder<T,S>> detectors,
java.util.Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb)
Runs the detectors in the test harness and stores the results in the
associated result builder.
|
<T extends IToken,S extends IMarkedSentence<T>> void run(IMWEDetector detector, IResultBuilder<T,S> results, java.util.Iterator<S> itr, IAnswerKey answers, IProgressBar pb)
T - the type of tokens in the IMarkedSentence objects the
harness runs overS - the type of unit the harness runs over. Is parameterized by
tokens of type T.detector - the detector being tested. May not be nullresults - the builder in which the results should be stored; may not be
nullitr - an iterator over the units the detector will be tested on. May
not be null.answers - an answer key that can be used to find the answer multi-word
expressions in a unit. May not be null.pb - a progress bar to which the harness should report progress.
May be nulljava.lang.NullPointerException - if the any of the detector, iterator or answer key are
null<T extends IToken,S extends IMarkedSentence<T>> void run(java.util.Map<IMWEDetector,IResultBuilder<T,S>> detectors, java.util.Iterator<S> itr, IAnswerKey answers, IProgressBar pb)
T - the type of tokens in the IMarkedSentence objects the
harness runs overS - the type of unit the harness runs over. Is parameterized by
tokens of type T.detectors - the detector-to-builder map being tested. May not be
nullitr - an iterator over the units the detector will be tested on. May
not be null.answers - an answer key that can be used to find the answer multi-word
expressions in a unit. May not be null.pb - a progress bar to which the harness should report progress.
May be nulljava.lang.NullPointerException - if the any of the detector map, iterator, or answer key are
nullCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.