vijay vijay | 1 Oct 06:42
Picon

can we define configaration parameter other than xml descriptors

Hi,
          i wnat to send the annotations dynamically.as per uima sdk guide
by using configaration parameters we can pass them as parameters in xml
descriptor.is there any posiblity of setting these from our java class?

      can we give these annotations Dynamically so that i can user an option
of entering his own choice of string that  sholud look in to input,here how
we sholud capture and then analyze that string?

 can any one help me here?

vijay
vijay vijay | 1 Oct 09:22
Picon

getting a error like descriptor is not valid

Hi
       i am getting error like this

"""the descriptor is not valid for the fallowing reason: the class
com.iton.uima.test.Test
 is not a valid a valid analysis component.you must specify an annotator,cas
consumer,collection reader or cas multipler.
if u are calling ResourceManager.setExcetionClassPath,this erro also can be
caused if u have put UIMA frame work jar file
on the extension calss path.which is not
allowed.descriptorfile:c/workspace/xyz/descriptor/aeDescriptor.xml.""

vijay
vijay vijay | 1 Oct 10:58
Picon

the descriptor is not valid for the fallowing reason

 Hi
       i am getting error like this

"""the descriptor is not valid for the fallowing reason: the class
com.iton.uima.test.Test
 is not a valid a valid analysis component.you must specify an annotator,cas
consumer,collection reader or cas multipler.
if u are calling ResourceManager.setExcetionClassPath,this erro also can be
caused if u have put UIMA frame work jar file
on the extension calss path.which is not
allowed.descriptorfile:c/workspace/xyz/descriptor/aeDescriptor.xml.""

vijay
vijay vijay | 1 Oct 12:51
Picon

HI guys i am not getting any responses from here from past 10 days.

Hi
        it was very bad, i am not getting any replies to my posting from
past 2 weeks.it was really dispoint for me, i don't contact also people who
knows this concept.previousley i used to get replies from ADAM ,MattHew.

No i am not getting any repley from them also. i was stoped do ing form past
10 days coz i a not able to procedd futher.

i hope some one will respond to i t

otherwise it is going to be big pain as well as big loss to me

vijay
vijay vijay | 1 Oct 13:57
Picon

dear UIMA gurus

HI
      dear sirs of UIMA, i have been tired by posting quries to this forum,but i have not recived any replies from them(from past 2weeks). i am have attched what i have done till now  from me past 10 days there no progress in work. i hope some one will answer me.
 
vijay
ashish mahale | 1 Oct 16:29
Picon
Favicon

UIMA source build

Good morning!!!

  Thanks Thilo and Marshall, I am working on this issue now and I will let you know about the progress or the
obstacles that I run into....

  Regards

  Ashish
Adam Lally | 1 Oct 16:38
Picon
Gravatar

Re: Cannot share Session object when using PEAR class loaders.

Danai,

On 9/28/07, Danai Wiriyayanyongsuk <danaiw@...> wrote:
> Hi folks,
>
> I'm trying the PEAR class loaders in UIMA 2.2. I think I found an issue
> that, if a PEAR description file is specified in the aggregate analysis
> engine description, the session object returned from the method
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.getContext().getSession()
> from the related annotator will be different from other annotators. In other
> words, the annotators cannot share the same session object if the PEAR class
> loader is used.
>

Actually the Session objects aren't really fully implemented - we
should have said this in the javadocs, sorry about that.  Here's the
idea, though:

Even without PEARs, the Session objects of two different annotators
are supposed to be different.  The Session object was intended as a
way for multiple instances of the *same* annotator to share
information (within a remote service deployment where multiple
instances were created for performance reasons), not as a way to share
information between different annotators.  Each annotator gets a
different Session object so that there would not be conflicts with the
key names chosen by the different annotators.

The idea is that in a remote service deployment where there are
multiple instances of an annotator and multiple clients, that the
Session object is a place for an annotator to store information on
behalf of a particular client.  So if client A makes a remote call and
this is handled by annotator instance 1, and that instance puts
information in the Session object, then if client A makes another call
which is handled by annotator instance 2, that annotator instance
could retrieve the information put there by annotator instance 1.

That part works, but currently if another client B comes in, it will
not get a distinct Session object.  That functionality has to be
implemented in the service wrapper and this was never done.

> Here is more detail on the situation.
>
> I have two annotators. Both of them sharing the same piece of information
> via the Session object (Session session = getContext().getSession();). I
> assume that both annotators will have access to the same session object. I
> tried it and found the inconsistent behavior between the following cases:
>
> Case 1: The aggregate analysis engine description contains full descriptions
> of both annotators  (no import tags).
> Case 2: The aggregate analysis engine description contains import tags with
> the PEAR description files specified (xxx_pear.xml) for both annotators.
>
> In case 1, for both annotators, the *same* session object are returned from
> the method
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.getContext().getSession().
> However in case 2, the *different* session objects are returned from the
> method.
>

I'm surprised that Case 1 actually works.  I wrote a little test annotator:

  public void process(JCas aJCas) throws AnalysisEngineProcessException {
    String val = (String)getContext().getSession().get("foo");
    System.out.println("foo = " + val);
    getContext().getSession().put("foo", "bar");
    val = (String)getContext().getSession().get("foo");
    System.out.println("Set foo = " + val);
  }

and made an aggregate with two such annotators, and showed that the
information put there by annotator 1 is not seen by annotator 2.

You still have a point, though, about the PEAR components.  Normally
the way for different annotators to share information is through a
SharedResourceObject.  However this won't work for PEAR components
because they don't share the same ResourceManager.  The way the PEAR
component works, it is completely isolated from the rest of the
aggregate AE (the main thing is that it can have its own class loader)
and can't share information.  This ought to be better documented.

Regards,
  -Adam

ashish mahale | 1 Oct 18:20
Picon
Favicon

UIMA source build

Hello friends...

  I have done the source build using "mvn install" and the "mvn eclipse:eclipse" commands, but the source is
compiling with errors. The errors mainly come from the "uimaj-ep-runtime" and the
"uimaj-ep-configurator" projects. Do I need to build these projects as eclipse plugin projects? The
other thing is that, I find the online information regarding the source build a little bit confusing, so I
have some questions regarding it for you....

  1) Do I need to do "mvn install" and the mvn "eclipse:eclipse" on the same source code? :)

  2) Do I need to compile all the projects as java projects? 

  I will appreciate if you guys can help me clarify the process of building the source under eclipse. 

  This is the information regarding my development environment -:
  Maven 2.0.7, Eclipse 3.2, Subclipse for SVN, Win 2000, Java 1.5...

  Thanks in advance....

  Regards,

  Ashish.
Jörn Kottmann | 1 Oct 18:30
Picon

Re: UIMA source build

>   I have done the source build using "mvn install" and the "mvn  
> eclipse:eclipse" commands, but the source is compiling with errors.  
> The errors mainly come from the "uimaj-ep-runtime" and the "uimaj- 
> ep-configurator" projects. Do I need to build these projects as  
> eclipse plugin projects? The other thing is that, I find the online  
> information regarding the source build a little bit confusing, so I  
> have some questions regarding it for you....

I have done the same last week. I could solve the build errors with  
the installation of EMF and "Update classpath" (right click the  
project and then its located
inside the PDE menu). After mvn eclipse:eclipse is also necessary the  
do a refresh on all projects.

If it still does not work please post your error messages here.

Hope this helps,
Jörn

Steve Suppe | 1 Oct 20:53

Re: Cannot share Session object when using PEAR class loaders.

If data needs to be shared among multiple instances of a remote deployment, 
shouldn't a statically allocated object work just as well?  There are 
synchronization issues, to be sure, but since each annotator runs in its 
own JVM (multiple deployments as well), then that should be able to be shared.

Thanks,
Steve

At 07:38 AM 10/1/2007, you wrote:
>Danai,
>
>On 9/28/07, Danai Wiriyayanyongsuk <danaiw@...> wrote:
> > Hi folks,
> >
> > I'm trying the PEAR class loaders in UIMA 2.2. I think I found an issue
> > that, if a PEAR description file is specified in the aggregate analysis
> > engine description, the session object returned from the method
> > 
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.getContext().getSession()
> > from the related annotator will be different from other annotators. In 
> other
> > words, the annotators cannot share the same session object if the PEAR 
> class
> > loader is used.
> >
>
>Actually the Session objects aren't really fully implemented - we
>should have said this in the javadocs, sorry about that.  Here's the
>idea, though:
>
>Even without PEARs, the Session objects of two different annotators
>are supposed to be different.  The Session object was intended as a
>way for multiple instances of the *same* annotator to share
>information (within a remote service deployment where multiple
>instances were created for performance reasons), not as a way to share
>information between different annotators.  Each annotator gets a
>different Session object so that there would not be conflicts with the
>key names chosen by the different annotators.
>
>The idea is that in a remote service deployment where there are
>multiple instances of an annotator and multiple clients, that the
>Session object is a place for an annotator to store information on
>behalf of a particular client.  So if client A makes a remote call and
>this is handled by annotator instance 1, and that instance puts
>information in the Session object, then if client A makes another call
>which is handled by annotator instance 2, that annotator instance
>could retrieve the information put there by annotator instance 1.
>
>That part works, but currently if another client B comes in, it will
>not get a distinct Session object.  That functionality has to be
>implemented in the service wrapper and this was never done.
>
> > Here is more detail on the situation.
> >
> > I have two annotators. Both of them sharing the same piece of information
> > via the Session object (Session session = getContext().getSession();). I
> > assume that both annotators will have access to the same session object. I
> > tried it and found the inconsistent behavior between the following cases:
> >
> > Case 1: The aggregate analysis engine description contains full 
> descriptions
> > of both annotators  (no import tags).
> > Case 2: The aggregate analysis engine description contains import tags with
> > the PEAR description files specified (xxx_pear.xml) for both annotators.
> >
> > In case 1, for both annotators, the *same* session object are returned from
> > the method
> > 
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.getContext().getSession().
> > However in case 2, the *different* session objects are returned from the
> > method.
> >
>
>I'm surprised that Case 1 actually works.  I wrote a little test annotator:
>
>   public void process(JCas aJCas) throws AnalysisEngineProcessException {
>     String val = (String)getContext().getSession().get("foo");
>     System.out.println("foo = " + val);
>     getContext().getSession().put("foo", "bar");
>     val = (String)getContext().getSession().get("foo");
>     System.out.println("Set foo = " + val);
>   }
>
>and made an aggregate with two such annotators, and showed that the
>information put there by annotator 1 is not seen by annotator 2.
>
>
>You still have a point, though, about the PEAR components.  Normally
>the way for different annotators to share information is through a
>SharedResourceObject.  However this won't work for PEAR components
>because they don't share the same ResourceManager.  The way the PEAR
>component works, it is completely isolated from the rest of the
>aggregate AE (the main thing is that it can have its own class loader)
>and can't share information.  This ought to be better documented.
>
>Regards,
>   -Adam


Gmane