opennlp-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Colen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENNLP-226) Evaluators should allow tools to register a misclassified report interface
Date Thu, 18 Aug 2011 15:12:27 GMT

    [ https://issues.apache.org/jira/browse/OPENNLP-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087050#comment-13087050
] 

William Colen commented on OPENNLP-226:
---------------------------------------

The revision #1159270 modified the listeners. Now it is more general.

- renamed the listener to EvaluationSampleListener and add two new methods. The method list
would be:

  void correctlyClassified(T reference, T prediction);
  void missclassified(T reference, T prediction);

- The EvaluationErrorPrinter now is abstract and implements the EvaluationSampleListener,
adding a default implementation for correctlyClassified. The missclassified should be implemented
by the subclass, like ChunkEvaluationErrorListener.

The abstract class Evaluator will now has the following new methods:

  void notifyCorrectlyClassified(T reference, T prediction);
  void notifyMissclassified(T reference, T prediction);
  void addListener(EvaluationSampleListener<T> listener);
  void removeListener(EvaluationSampleListener<T> listener);
  T processSample

The method processSample should be implemented by subclasses. In the future it will be made
abstract. The default implementation of evaluateSample calls the notifyCorrectlyClassified
and notifyMissclassified according to the result of processSample.

> Evaluators should allow tools to register a misclassified report interface
> --------------------------------------------------------------------------
>
>                 Key: OPENNLP-226
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-226
>             Project: OpenNLP
>          Issue Type: New Feature
>          Components: Chunker, Command Line Interface, Name Finder, POS Tagger, Sentence
Detector, Tokenizer
>    Affects Versions: tools-1.5.2-incubating
>            Reporter: William Colen
>            Assignee: William Colen
>            Priority: Minor
>             Fix For: tools-1.5.2-incubating
>
>
> OPENNLP-220 introduced the -misclassified argument that enables evaluators to print misclassified
items while using the command line evaluators. We should expand it to allow any other tool
that uses evaluators to register an interface to get that information.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message