You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Kumar, Chettan" <Ch...@uni-bayreuth.de> on 2019/08/27 12:32:44 UTC

How to resolve the importing issue of (TOP_Type, Annotation_Type)

Dear UIMA Support team,


I am facing problem to import (TOP_Type, Annotation_Type) as warning {The type TOP_Type is deprecated, The type  Annotation_Type is deprecated}.

Due to this, I can start my experiment so please give me some advise to deal with these type of warning.


Thank you


import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.tcas.Annotation_Type;




Best Regards

Chettan


[cid:f8b2bace-9192-4b94-bfa1-80a2ef8d4617]

Re: How to resolve the importing issue of (TOP_Type, Annotation_Type)

Posted by Marshall Schor <ms...@schor.com>.
Hi,

I'm guessing you're using uima version 3, not uima version 2, is this correct?

If so, you can just delete the JCas classes whose names end in "_Type"; they are
not used in version 3.

Leaving them in place won't hurt anything, also, (except for those annoying
warnings).

-Marshall

On 8/27/2019 8:32 AM, Kumar, Chettan wrote:
>
> Dear UIMA Support team,
>
>
> I am facing problem to import (TOP_Type, Annotation_Type) as warning {The type
> TOP_Type is deprecated, The type  Annotation_Type is deprecated}.
>
> Due to this, I can start my experiment so please give me some advise to deal
> with these type of warning.
>
>
> Thank you
>
>
> import org.apache.uima.jcas.cas.TOP_Type;
> import org.apache.uima.jcas.tcas.Annotation_Type;
>
>
>
> Best Regards
>
> Chettan
>
>
>

Re: How to resolve the importing issue of (TOP_Type, Annotation_Type)

Posted by Marshall Schor <ms...@schor.com>.
The overview chapter in the version 3 user's guide

http://uima.apache.org/d/uimaj-current/version_3_users_guide.html#uv3.overview

states "In Version 3, the JCas classes ending in "_Type" are no longer used, and
the main JCas class definitions are much simplified."

I notice in your email that you have Java "import" statements listed for the the
xxx_Type classes.  What classes are those import statements in?

Cheers. -Marshall

On 8/27/2019 8:32 AM, Kumar, Chettan wrote:
>
> Dear UIMA Support team,
>
>
> I am facing problem to import (TOP_Type, Annotation_Type) as warning {The type
> TOP_Type is deprecated, The type  Annotation_Type is deprecated}.
>
> Due to this, I can start my experiment so please give me some advise to deal
> with these type of warning.
>
>
> Thank you
>
>
> import org.apache.uima.jcas.cas.TOP_Type;
> import org.apache.uima.jcas.tcas.Annotation_Type;
>
>
>
> Best Regards
>
> Chettan
>
>
>