T
- the type of tokens in the unitS
- the type of sentence the harness runs over. Is parameterized by tokens
of type T.public interface IResultBuilder<T extends IToken,S extends IMarkedSentence<T>>
IOverallResult
object.
These classes store the sentence result objects collected from running a
test harness over a group of IMarkedSentence
objects and carry out
all the calculations needed to build the final result.Modifier and Type | Method and Description |
---|---|
void |
addDetail(java.lang.String id,
ISentenceResult<T,S> detail)
Stores the results for a unit under its ID.
|
IOverallResult<T,S> |
createResult()
Creates a result from the data stored in this builder.
|
void |
process(java.util.List<IMWE<T>> found,
java.util.List<IMWE<T>> answers)
Updates the internal data stored in this builder by comparing the
multi-word expressions found by an MWE detector to the answer
multi-word expressions.
|
void process(java.util.List<IMWE<T>> found, java.util.List<IMWE<T>> answers)
found
- A non-null list of multi-word expressions found by an
IMWEDetector.answers
- A non-null list of answer multi-word expressionsjava.lang.NullPointerException
- if either list is null
void addDetail(java.lang.String id, ISentenceResult<T,S> detail)
id
- the non-null identification String for the unitdetail
- the unit result. May not be null
.IOverallResult<T,S> createResult()
null
.Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.