|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestHarness
Classes implementing this interface test an 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.
Method Summary | ||
---|---|---|
|
run(IMWEDetector detector,
IResultBuilder<T,S> results,
Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb)
Runs the detector in the test harness and stores the results in the provided result builder. |
|
|
run(Map<IMWEDetector,IResultBuilder<T,S>> detectors,
Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb)
Runs the detectors in the test harness and stores the results in the associated result builder. |
Method Detail |
---|
<T extends IToken,S extends IMarkedSentence<T>> void run(IMWEDetector detector, IResultBuilder<T,S> results, 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 null
results
- the builder in which the results should be stored; may not be
null
itr
- 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 null
NullPointerException
- if the any of the detector, iterator or answer key are
null
<T extends IToken,S extends IMarkedSentence<T>> void run(Map<IMWEDetector,IResultBuilder<T,S>> detectors, 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
null
itr
- 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 null
NullPointerException
- if the any of the detector map, iterator, or answer key are
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |