|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>>
Classes implementing this interface build an 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.
Method Summary | |
---|---|
void |
addDetail(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(List<IMWE<T>> found,
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. |
Method Detail |
---|
void process(List<IMWE<T>> found, 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 expressions
NullPointerException
- if either list is null
void addDetail(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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |