edu.mit.jmwe.harness.result
Interface IErrorResult<T extends IToken>

Type Parameters:
T - the token type
All Known Implementing Classes:
ErrorResult

public interface IErrorResult<T extends IToken>

Stores MWEs under the type of error they make.

Since:
jMWE 1.0.0
Version:
$Id: IErrorResult.java 620 2011-05-08 21:13:58Z markaf $
Author:
N. Kulkarni

Method Summary
 Map<String,List<IMWE<T>>> getDetails()
          Returns a Map that stores multi-word expressions under the ID of the error class they belong to.
 int getNumErrors(String id)
          Gets the number of MWEs that fall under the given error class.
 int getTotalErrors()
          Returns the total number of errors for the result.
 

Method Detail

getTotalErrors

int getTotalErrors()
Returns the total number of errors for the result. Will always be zero or greater.

Returns:
the total number of errors for the result, always non-negative.
Since:
jMWE 1.0.0

getNumErrors

int getNumErrors(String id)
Gets the number of MWEs that fall under the given error class.

Parameters:
id - the ID of the error class.
Returns:
the number of multi-word expression that fall under the given error class and zero if this error class is not represented in the error result.
Since:
jMWE 1.0.0

getDetails

Map<String,List<IMWE<T>>> getDetails()
Returns a Map that stores multi-word expressions under the ID of the error class they belong to. Should never be null.

Returns:
a non-null Map that stores multi-word expressions under the ID of the error class they belong to.
Since:
jMWE 1.0.0


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.