Hi, while you help us reproduce your error, as a workaround, you could try to use TYPE to tell Ruta which "Document" Annotation you intend to use.
Example: ``` TYPE Document1 = org.apache.uima.ruta.type.Document; TYPE Document2 = uima.tcas.DocumentAnnotation; Document1{ -> CREATE(MyAnnotation)}; ``` Best, Viorel On Thu, Aug 8, 2024 at 7:24 PM Raghunath Mahakud < mahakudraghunath...@gmail.com> wrote: > Hi Team, > > Can anyone guide me? It's a critical blocker for me. > > Regards, > > Raghunath.. > > > > > > On Thu, Aug 8, 2024 at 10:39 AM Raghunath Mahakud < > mahakudraghunath...@gmail.com> wrote: > > > I am using below versions: > > > > versions used: > > [uimaj-3.4.1] > > [uimafit-3.4.0] > > [ruta-3.3.0] > > [cleartk-3.0.0] > > > > java.lang.IllegalArgumentException: Document is ambiguous, use one of the > > following instead : org.apache.uima.ruta.type.Document > > uima.tcas.DocumentAnnotation > > > > Could you please help out what is going wrong and mostly it's occurring > > when it runs in batch. > > I don't have any multiple versions either. > > and why Ruta thinks that "Document" should be a valid name for "Document" > > annotation. > > > > Regards, > > > > Raghunath... > > >