You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Michael Baessler (JIRA)" <ui...@incubator.apache.org> on 2008/03/12 17:34:46 UTC

[jira] Commented: (UIMA-891) uima example annotator does not work with the new Result spec design

    [ https://issues.apache.org/jira/browse/UIMA-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577909#action_12577909 ] 

Michael Baessler commented on UIMA-891:
---------------------------------------

When thinking again about this issue, I'm not sure if the current implementation is correct...

When calling 
  resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot") 
it is checked if TimeAnnot is available for language x-unspecified, but if the type is just defined for language "en"
the result is false. To get true it is necessary to do
   resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot","en")

But x-unspecified stand for all languages, so why do I get no results when
asking for 
   resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot")

And what should happen when having the following case:
org.apache.uima.tutorial.TimeAnnot is defined for x-unspecified -> so this means for all types

What should happen when calling
   resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot","en")
I think it should also return true.

Opinions?


> uima example annotator does not work with the new Result spec design
> --------------------------------------------------------------------
>
>                 Key: UIMA-891
>                 URL: https://issues.apache.org/jira/browse/UIMA-891
>             Project: UIMA
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 2.2.1
>            Reporter: Michael Baessler
>            Assignee: Michael Baessler
>             Fix For: 2.2.2
>
>
> Annotators does not produce any output result since the use the ResultSpec API in a wrong way
> They do:
> resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot")
> which checks the type for language x-unspecified
> But the annotator only works for "en" as mentioned in the output spec so they have to do a check like:
> resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot","en")

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.