Re: How can i use UIMA in Python

2017-09-20 Thread Luca Toldo
Hi
For example using the REST api 


> Am 20.09.2017 um 16:04 schrieb Gajender Ramola :
> 
> Hello ,
> 
> How can i use UIMA in Python
> 
> -- 
> Thanks & Regards,
> Gajender S. Ramola
> 
> email:gajender...@gmail.com


Re: XMl generated by AnalysisEngineDescription.toXML not accepted by UIMA-as

2017-09-20 Thread r. r.
Jerry, that was it - I added annotatorImplementationName and it worked!
Well, it failed at first, but when I added the correct classpath all went 
smoothly

Many thanks for your help!
Best regards
-Robert








 > Оригинално писмо 

 >От: Jaroslaw Cwiklik cwik...@apache.org

 >Относно: Re: XMl generated by AnalysisEngineDescription.toXML not accepted by 
 >UIMA-as

 >До: user@uima.apache.org

 >Изпратено на: 19.09.2017 22:59



 
> Just a clarification on this xml element (annotatorImplementationName),
 
> from UIMA documentation:
 
> 
 
> "The next subelement,  is how the UIMA
 
> framework determines which annotator class to use. This should contain a
 
> fully-qualified Java class name for Java implementations, or the name of a
 
> .dll or .so file for C++ implementations."
 
> 
 
> So add the fully class name which implements your AE in the
 
> annotatorImplementationName.
 
> 
 
> Jerry
 
> 
 
> On Tue, Sep 19, 2017 at 3:40 PM, Jaroslaw Cwiklik 
 
> wrote:
 
> 
 
> > OK, this is much clearer now. It looks like the NPE comes from the uima-as
 
> > code while trying to determine name for the service. Its trying to use your
 
> > analysis engine  descriptor   WHATEVER > annotatorImplementationName>
 
> > Is this missing in your AE descriptor? If so add it and give it a
 
> > meaningful name.
 
> >
 
> > Jerry
 
> >
 
> > On Tue, Sep 19, 2017 at 1:38 PM, r. r.  wrote:
 
> >
 
> >> Great - I added this and the file is preserved now
 
> >> posted it here: https://pastebin.com/Z2pHa0nN
 
> >>
 
> >> And there is a uima.log indeed! posted it here:
 
> >> https://pastebin.com/dQ4vUW5T
 
> >>
 
> >> It mentions 'primitive_ctrl_...', is that correct? Because the AE is an
 
> >> aggregate one.
 
> >> Before running this test, I ran the uima-as examples and they work fine
 
> >>
 
> >> Thanks!
 
> >> -Robert
 
> >>
 
> >>
 
> >>
 
> >>
 
> >>
 
> >>
 
> >>
 
> >>  > Оригинално писмо 
 
> >>
 
> >>  >От: Jaroslaw Cwiklik cwik...@apache.org
 
> >>
 
> >>  >Относно: Re: XMl generated by AnalysisEngineDescription.toXML not
 
> >> accepted by UIMA-as
 
> >>
 
> >>  >До: user@uima.apache.org
 
> >>
 
> >>  >Изпратено на: 19.09.2017 20:07
 
> >>
 
> >>
 
> >>
 
> >>
 
> >> > I setup my classpath with all the jars needed by the uima-as runtime.
 
> >> What
 
> >>
 
> >> > is strange is that you report a NullPointerException in a constructor of
 
> >>
 
> >> > one of the UIMA-AS classes. I would have expected
 
> >> ClassNotFoundException if
 
> >>
 
> >> > a jar was missing. Unless the actual cause is swallowed somewhere. Do
 
> >> you
 
> >>
 
> >> > have uima.log in a directory where u start the service?
 
> >>
 
> >> >
 
> >>
 
> >> > To preserve a Spring file add: -uimaEeDebug right after -saxonURL and
 
> >> -xslt
 
> >>
 
> >> >  When you get the failure look for a path to it as in your original
 
> >>
 
> >> > error:
 
> >>
 
> >> >
 
> >>
 
> >> > ...Error creating bean with name 'primitive_ctlr_DKProStanfordQueue_1'
 
> >>
 
> >> > defined in URL [*file:/var/folders/dt/**vmntv
 
> >> 00526g5s84b85rqwmm5qbfkqb/T/*
 
> >>
 
> >> > UIMAdd2springOutput2528967577403356774.xml]
 
> >>
 
> >> >
 
> >>
 
> >> > Jerry
 
> >>
 
> >> >
 
> >>
 
> >> > On Tue, Sep 19, 2017 at 12:46 PM, r. r.  wrote:
 
> >>
 
> >> >
 
> >>
 
> >> > > Thanks Jerry,
 
> >>
 
> >> > > No, that file is gone after the command fails.
 
> >>
 
> >> > > Do I have to setup the jars in use in the class path or is UIMA-as
 
> >> getting
 
> >>
 
> >> > > all the info to locate jars from the descriptor xmls?
 
> >>
 
> >> > > Or maybe a way to see a yet more detailed error description by the
 
> >> deploy
 
> >>
 
> >> > > tool?
 
> >>
 
> >> > >
 
> >>
 
> >> > > I'm running this with Java 8 on OSX Sierra:
 
> >>
 
> >> > > java version "1.8.0_45"
 
> >>
 
> >> > > Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
 
> >>
 
> >> > > Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
 
> >>
 
> >> > >
 
> >>
 
> >> > > Best regards
 
> >>
 
> >> > > -Robert
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >  > Оригинално писмо 
 
> >>
 
> >> > >
 
> >>
 
> >> > >  >От: Jaroslaw Cwiklik cwik...@apache.org
 
> >>
 
> >> > >
 
> >>
 
> >> > >  >Относно: Re: XMl generated by AnalysisEngineDescription.toXML not
 
> >>
 
> >> > > accepted by UIMA-as
 
> >>
 
> >> > >
 
> >>
 
> >> > >  >До: user@uima.apache.org
 
> >>
 
> >> > >
 
> >>
 
> >> > >  >Изпратено на: 19.09.2017 19:28
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > >
 
> >>
 
> >> > > > Robert, the DD looks ok to me. I actually stripped down one of my
 
> >> DD to
 
> >>
 
> >> > >
 
> >>
 
> >> > > > look just as yours and it deployed fine. Do you still have this
 
> >> file:
 
> >>
 
> >> > >
 
> >>
 
> >> > > > file:/var/folders/dt/vmntv00526g5s84b85rqwmm5qbfkqb/T/