You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (Commented) (JIRA)" <de...@uima.apache.org> on 2011/10/20 21:12:10 UTC

[jira] [Commented] (UIMA-2264) org.apache.uima.TokenAnnotation class common to Tagger and SnowballAnnotator

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

Marshall Schor commented on UIMA-2264:
--------------------------------------

This is a case where type merging should occur.  The "class" conflict you may be seeing is that there are two different JCas "cover classes" for each of these add-ons.  The solution is:

1) make an aggregate that includes both of these addons
2) using that aggregate, regenerate the JCas cover classes for the "merged" type definitions.  A somewhat easy way to do this if you're using Eclipse is to create a new Java project for your aggregate, and run the CDE to create the aggregate in that project.  On the Type System page, push the "JCasGen" button, and that should generate the classes corresponding to the merged type system, into your Eclipse project for the aggregate.

There's some more discussion about this here: http://uima.apache.org/d/uimaj-2.3.1/references.html#ugr.ref.jcas.merging_types_from_other_specs

Does this address your concerns? 
                
> org.apache.uima.TokenAnnotation class common to Tagger and SnowballAnnotator
> ----------------------------------------------------------------------------
>
>                 Key: UIMA-2264
>                 URL: https://issues.apache.org/jira/browse/UIMA-2264
>             Project: UIMA
>          Issue Type: Question
>          Components: addons
>    Affects Versions: 2.3.1SDK
>         Environment: Windows 7 64bit, jdk1.6.0_23
>            Reporter: Constantin Mitocaru
>              Labels: SnowballAnnotator, Tagger, TokenAnnotation
>
> I want to be able to use both Tagger and SnowballAnnotator add-ons in the same AE.
> It seems that is not possible as there is a collision while org.apache.uima.TokenAnnotation class is present in both annotators
> Is this a bug?
> What do I do if not?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira