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

Jörn Kottmann commented on OPENNLP-226:
---------------------------------------

I would do it like this:
if (this.sampleListener != null) { 
      NameSample predicted = new NameSample(sentence, predictedNames, 
          reference.isClearAdaptiveDataSet());
      if (!reference.equals(predicted)) {
            this.sampleListener.missclassified(reference, predicted);
      }
}

Than it is easier to move it up to Evaluator later.

> 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


Reply via email to