You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Danai Wiriyayanyongsuk <da...@gmail.com> on 2007/08/30 04:48:27 UTC

UIMA 2.2 Class Loader

Hi Guys,

I'd like to ask a couple of questions regarding the classloader in UIMA 2.2.


For an aggregate analysis engine, is there a way to have/set different class
loaders for each aggregated primitive analysis engines, so that the classes
won't interfere each others?

If there is so, could you please shed some light how to do it? I've looked
into the source code and documentation but no luck :(

Many Thanks,
Danai Wiriyayanyongsuk

Re: UIMA 2.2 Class Loader

Posted by vijay vijay <vi...@gmail.com>.
                u said that it is posted can u tell me where it is exactly,


than k u
vijay

On 9/12/07, Danai Wiriyayanyongsuk <da...@gmail.com> wrote:
>
> Sorry for taking a while for posting. It is now posted in the page. All
> comments/suggestions/discussions are very welcome.
>
> Thanks,
> Danai Wiriyayanyongsuk
>
> On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> > Since this is a new requirement for UIMA can you please add it with some
> > information to the
> > UIMA wiki? There is a section where we gather UIMA requirements.
> > http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
> >
> > Thanks!
> >
> > -- Michael
> >
> > Danai Wiriyayanyongsuk wrote:
> > > That looks like a really good idea! :D
> > >
> > > Just a thought, in case of that a PEAR descriptor is specified, there
> > will
> > > be two classpath information: one for the PEAR itself and another one
> > from
> > > the XML tag. It would be nice to also add an attribute for the
> classpath
> > to
> > > indicate how the one specified in XML should be use. For example:
> > >    <classpath usage="append | addfirst | override"> classpath settings
> > > </classpath>
> > >
> > > My two cents :)
> > > Danai Wiriyayanyongsuk
> > >
> > >
> > > On 8/31/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> > >
> > >> Currently there is no way to specify a classpath for a primitive AE
> > that
> > >> is used in an aggregate without having the PEAR file structure.
> > >>
> > >> I think you are searching for an option like
> > >>
> > >>     <delegateAnalysisEngine key="PearDesc">
> > >>         <import location="AnalysisEngine.xml"/>
> > >>         <classpath> classpath settings </classpath>
> > >>     </delegateAnalysisEngine>
> > >>
> > >> to specify the classpath of a component using a descriptor. Maybe a
> new
> > >> requirement :-)
> > >>
> > >> -- Michael
> > >>
> > >>
> > >> Danai Wiriyayanyongsuk wrote:
> > >>
> > >>> Thanks Michael for the detailed information! Actually, I tried the
> > >>>
> > >> similar
> > >>
> > >>> thing before previous posting but didn't work. It seemed like the
> > whole
> > >>> delegateAnalysisEngine tag wasn't there as the annotator class
> didn't
> > >>>
> > >> get
> > >>
> > >>> loaded. However, it worked when I switched to the location pointed
> to
> > >>>
> > >> the
> > >>
> > >>> primitive AE description instead.
> > >>>
> > >>> I'll double check and keep you posted. Unfortunately, it might take
> me
> > >>> sometime to get back the result as I just got assigned to a small
> > urgent
> > >>> work.
> > >>>
> > >>> I appreciated the help :)
> > >>>
> > >>> Anyway, is there a way to dynamically create a PEAR-like, isolated
> > class
> > >>> loader environment for a primitive AE where there is no real PEAR
> > file,
> > >>>
> > >> so
> > >>
> > >>> that the dynamically generated primitve AE description can be
> directly
> > >>>
> > >> used
> > >>
> > >>> in an aggregate AE description, assuming that the primitive AE's
> > >>>
> > >> classpath
> > >>
> > >>> is known?
> > >>>
> > >>> Thanks,
> > >>> Danai Wiriyayanyongsuk
> > >>>
> > >>>
> > >>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> > >>>
> > >>>
> > >>>> Adding the PEAR descriptor as delegate to a aggregate AE should
> work.
> > I
> > >>>> have tested this successfully.
> > >>>> PEAR descriptors can be used similar to a primitive or aggregate AE
> > >>>> descriptor.
> > >>>>
> > >>>>      <delegateAnalysisEngine key="PearDesc">
> > >>>>          <import
> > >>>> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
> > >>>>      </delegateAnalysisEngine>
> > >>>>
> > >>>> If that doesn't work please provide me some detailed information
> > about
> > >>>> the error. You can also try for testing to
> > >>>> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
> > >>>> tooling. That should also work. So you
> > >>>> can verify that the PEAR descriptor referring an AE works as
> > expected.
> > >>>>
> > >>>> Hope that helps.
> > >>>>
> > >>>> -- Michael
> > >>>>
> > >>>> Danai Wiriyayanyongsuk wrote:
> > >>>>
> > >>>>
> > >>>>> Thanks Michael. Yes, I have my primitive engines available as PEAR
> > >>>>>
> > >>>>>
> > >>>> files. I
> > >>>>
> > >>>>
> > >>>>> also have the auto-generated PEAR descriptors.
> > >>>>>
> > >>>>> Michael's Quote: "This descriptor have to be used in the aggregate
> > to
> > >>>>>
> > >>>>>
> > >>>> refer
> > >>>>
> > >>>>
> > >>>>> to the primitive AEs."
> > >>>>> Question: How to refer the PEAR descriptors to their primitive AEs
> > in
> > >>>>>
> > >>>>>
> > >>>> the
> > >>>>
> > >>>>
> > >>>>> aggregate? Is it documented somewhere? In the aggregate AE
> > >>>>>
> > >> description,
> > >>
> > >>>> I
> > >>>>
> > >>>>
> > >>>>> tried to specify the location of the PEAR descriptors in
> > >>>>> "delegateAnalysisEngine/import" but didn't work.
> > >>>>>
> > >>>>> Thanks,
> > >>>>> Danai Wiriyayanyongsuk
> > >>>>>
> > >>>>>
> > >>>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>> Are your primitive engines available as PEAR files? That is
> needed
> > >>>>>>
> > >>>>>>
> > >>>> since
> > >>>>
> > >>>>
> > >>>>>> only if you have them as PEAR files
> > >>>>>> you can use the PEAR descriptor.
> > >>>>>>
> > >>>>>> After you have installed the PEAR files a PEAR descriptor is
> > >>>>>> automatically generated (located in the install directory). This
> > >>>>>> descriptor have to
> > >>>>>> be used in the aggregate to refer to the primitive AEs.
> > >>>>>>
> > >>>>>> -- Michael
> > >>>>>>
> > >>>>>> Danai Wiriyayanyongsuk wrote:
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> Thanks Marshall for the information and for asking :)
> > >>>>>>>
> > >>>>>>> What I have tried is that I have a description of an aggregate
> > >>>>>>>
> > >>>>>>>
> > >>>> analysis
> > >>>>
> > >>>>
> > >>>>>>> engine which has 4 primitive analysis engine defined. Those
> > >>>>>>>
> > >> primitive
> > >>
> > >>>> AE
> > >>>>
> > >>>>
> > >>>>>>> descriptions are all fully defined (no imports) under the
> > >>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do
> this
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>> because
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> those primitive AE descriptions are generated on the fly. For
> one
> > >>>>>>>
> > >>>>>>>
> > >>>> thing,
> > >>>>
> > >>>>
> > >>>>>>> each primitive AE has its own PEAR-compliant directory. In this
> > >>>>>>>
> > >> case,
> > >>
> > >>>> I
> > >>>>
> > >>>>
> > >>>>>>> could not figure out how to tell UIMA the location those
> > >>>>>>>
> > >> directories.
> > >>
> > >>>>>>> Excerpt from section 5.8 in the UIMA References page:
> > >>>>>>> "As of version 2.2, the framework supports component descriptors
> > >>>>>>>
> > >> which
> > >>
> > >>>>>>>
> > >>>>>> are
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> PEAR descriptors. These descriptors define components plus
> include
> > >>>>>>> information on the class path needed to run them."
> > >>>>>>> Question: To get the individual class loader for each primitive
> AE
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>> defined
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> in an aggregate AE, do we have to specify/map the PEAR
> descriptor
> > >>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> > >>>>>>>
> > >> where
> > >>
> > >>>>>>>
> > >>>>>> and
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> how to do it?
> > >>>>>>>
> > >>>>>>> Any comments/recommendations would be appreciated.
> > >>>>>>>
> > >>>>>>> Thanks,
> > >>>>>>> Danai Wiriyayanyongsuk
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> > >>>>>>>> descriptors, which include the class path information.
> > >>>>>>>>
> > >>>>>>>> This should allow you to run a pipeline where each annotator
> > could
> > >>>>>>>>
> > >>>>>>>>
> > >>>> have
> > >>>>
> > >>>>
> > >>>>>>>> different versions of classes.
> > >>>>>>>> See
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>
> >
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> > >>
> > >>>>>>>> Is that what you're trying to do?
> > >>>>>>>>
> > >>>>>>>> -Marshall
> > >>>>>>>>
> > >>>>>>>> Danai Wiriyayanyongsuk wrote:
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>> Hi Guys,
> > >>>>>>>>>
> > >>>>>>>>> I'd like to ask a couple of questions regarding the
> classloader
> > in
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>> UIMA
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>> 2.2.
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>> For an aggregate analysis engine, is there a way to have/set
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>> different
> > >>>>
> > >>>>
> > >>>>>>>> class
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>> loaders for each aggregated primitive analysis engines, so
> that
> > >>>>>>>>>
> > >> the
> > >>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>> classes
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>> won't interfere each others?
> > >>>>>>>>>
> > >>>>>>>>> If there is so, could you please shed some light how to do it?
> > >>>>>>>>>
> > >> I've
> > >>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>> looked
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>> into the source code and documentation but no luck :(
> > >>>>>>>>>
> > >>>>>>>>> Many Thanks,
> > >>>>>>>>> Danai Wiriyayanyongsuk
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>
> > >>
> > >
> > >
> >
> >
>

Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
Will do it right after finishing my small urgent work :)

Thanks for taking this into your consideration.

-Danai

On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Since this is a new requirement for UIMA can you please add it with some
> information to the
> UIMA wiki? There is a section where we gather UIMA requirements.
> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
>
> Thanks!
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
> > That looks like a really good idea! :D
> >
> > Just a thought, in case of that a PEAR descriptor is specified, there
> will
> > be two classpath information: one for the PEAR itself and another one
> from
> > the XML tag. It would be nice to also add an attribute for the classpath
> to
> > indicate how the one specified in XML should be use. For example:
> >    <classpath usage="append | addfirst | override"> classpath settings
> > </classpath>
> >
> > My two cents :)
> > Danai Wiriyayanyongsuk
> >
> >
> > On 8/31/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> >> Currently there is no way to specify a classpath for a primitive AE
> that
> >> is used in an aggregate without having the PEAR file structure.
> >>
> >> I think you are searching for an option like
> >>
> >>     <delegateAnalysisEngine key="PearDesc">
> >>         <import location="AnalysisEngine.xml"/>
> >>         <classpath> classpath settings </classpath>
> >>     </delegateAnalysisEngine>
> >>
> >> to specify the classpath of a component using a descriptor. Maybe a new
> >> requirement :-)
> >>
> >> -- Michael
> >>
> >>
> >> Danai Wiriyayanyongsuk wrote:
> >>
> >>> Thanks Michael for the detailed information! Actually, I tried the
> >>>
> >> similar
> >>
> >>> thing before previous posting but didn't work. It seemed like the
> whole
> >>> delegateAnalysisEngine tag wasn't there as the annotator class didn't
> >>>
> >> get
> >>
> >>> loaded. However, it worked when I switched to the location pointed to
> >>>
> >> the
> >>
> >>> primitive AE description instead.
> >>>
> >>> I'll double check and keep you posted. Unfortunately, it might take me
> >>> sometime to get back the result as I just got assigned to a small
> urgent
> >>> work.
> >>>
> >>> I appreciated the help :)
> >>>
> >>> Anyway, is there a way to dynamically create a PEAR-like, isolated
> class
> >>> loader environment for a primitive AE where there is no real PEAR
> file,
> >>>
> >> so
> >>
> >>> that the dynamically generated primitve AE description can be directly
> >>>
> >> used
> >>
> >>> in an aggregate AE description, assuming that the primitive AE's
> >>>
> >> classpath
> >>
> >>> is known?
> >>>
> >>> Thanks,
> >>> Danai Wiriyayanyongsuk
> >>>
> >>>
> >>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>
> >>>
> >>>> Adding the PEAR descriptor as delegate to a aggregate AE should work.
> I
> >>>> have tested this successfully.
> >>>> PEAR descriptors can be used similar to a primitive or aggregate AE
> >>>> descriptor.
> >>>>
> >>>>      <delegateAnalysisEngine key="PearDesc">
> >>>>          <import
> >>>> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
> >>>>      </delegateAnalysisEngine>
> >>>>
> >>>> If that doesn't work please provide me some detailed information
> about
> >>>> the error. You can also try for testing to
> >>>> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
> >>>> tooling. That should also work. So you
> >>>> can verify that the PEAR descriptor referring an AE works as
> expected.
> >>>>
> >>>> Hope that helps.
> >>>>
> >>>> -- Michael
> >>>>
> >>>> Danai Wiriyayanyongsuk wrote:
> >>>>
> >>>>
> >>>>> Thanks Michael. Yes, I have my primitive engines available as PEAR
> >>>>>
> >>>>>
> >>>> files. I
> >>>>
> >>>>
> >>>>> also have the auto-generated PEAR descriptors.
> >>>>>
> >>>>> Michael's Quote: "This descriptor have to be used in the aggregate
> to
> >>>>>
> >>>>>
> >>>> refer
> >>>>
> >>>>
> >>>>> to the primitive AEs."
> >>>>> Question: How to refer the PEAR descriptors to their primitive AEs
> in
> >>>>>
> >>>>>
> >>>> the
> >>>>
> >>>>
> >>>>> aggregate? Is it documented somewhere? In the aggregate AE
> >>>>>
> >> description,
> >>
> >>>> I
> >>>>
> >>>>
> >>>>> tried to specify the location of the PEAR descriptors in
> >>>>> "delegateAnalysisEngine/import" but didn't work.
> >>>>>
> >>>>> Thanks,
> >>>>> Danai Wiriyayanyongsuk
> >>>>>
> >>>>>
> >>>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Are your primitive engines available as PEAR files? That is needed
> >>>>>>
> >>>>>>
> >>>> since
> >>>>
> >>>>
> >>>>>> only if you have them as PEAR files
> >>>>>> you can use the PEAR descriptor.
> >>>>>>
> >>>>>> After you have installed the PEAR files a PEAR descriptor is
> >>>>>> automatically generated (located in the install directory). This
> >>>>>> descriptor have to
> >>>>>> be used in the aggregate to refer to the primitive AEs.
> >>>>>>
> >>>>>> -- Michael
> >>>>>>
> >>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Thanks Marshall for the information and for asking :)
> >>>>>>>
> >>>>>>> What I have tried is that I have a description of an aggregate
> >>>>>>>
> >>>>>>>
> >>>> analysis
> >>>>
> >>>>
> >>>>>>> engine which has 4 primitive analysis engine defined. Those
> >>>>>>>
> >> primitive
> >>
> >>>> AE
> >>>>
> >>>>
> >>>>>>> descriptions are all fully defined (no imports) under the
> >>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> because
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> those primitive AE descriptions are generated on the fly. For one
> >>>>>>>
> >>>>>>>
> >>>> thing,
> >>>>
> >>>>
> >>>>>>> each primitive AE has its own PEAR-compliant directory. In this
> >>>>>>>
> >> case,
> >>
> >>>> I
> >>>>
> >>>>
> >>>>>>> could not figure out how to tell UIMA the location those
> >>>>>>>
> >> directories.
> >>
> >>>>>>> Excerpt from section 5.8 in the UIMA References page:
> >>>>>>> "As of version 2.2, the framework supports component descriptors
> >>>>>>>
> >> which
> >>
> >>>>>>>
> >>>>>> are
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> PEAR descriptors. These descriptors define components plus include
> >>>>>>> information on the class path needed to run them."
> >>>>>>> Question: To get the individual class loader for each primitive AE
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> defined
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> >>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> >>>>>>>
> >> where
> >>
> >>>>>>>
> >>>>>> and
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> how to do it?
> >>>>>>>
> >>>>>>> Any comments/recommendations would be appreciated.
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>>>>> descriptors, which include the class path information.
> >>>>>>>>
> >>>>>>>> This should allow you to run a pipeline where each annotator
> could
> >>>>>>>>
> >>>>>>>>
> >>>> have
> >>>>
> >>>>
> >>>>>>>> different versions of classes.
> >>>>>>>> See
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >>>>>>>> Is that what you're trying to do?
> >>>>>>>>
> >>>>>>>> -Marshall
> >>>>>>>>
> >>>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Hi Guys,
> >>>>>>>>>
> >>>>>>>>> I'd like to ask a couple of questions regarding the classloader
> in
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>> UIMA
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>> 2.2.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>>>>
> >>>>>>>>>
> >>>> different
> >>>>
> >>>>
> >>>>>>>> class
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> loaders for each aggregated primitive analysis engines, so that
> >>>>>>>>>
> >> the
> >>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> classes
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> won't interfere each others?
> >>>>>>>>>
> >>>>>>>>> If there is so, could you please shed some light how to do it?
> >>>>>>>>>
> >> I've
> >>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> looked
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> into the source code and documentation but no luck :(
> >>>>>>>>>
> >>>>>>>>> Many Thanks,
> >>>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>
> >>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by vijay vijay <vi...@gmail.com>.
Hi Michael,
                   i will add that reconfigartion method in to it.with set
configaration method we can set parameters and i have written that
code.herei have passed "michael,vijay,uima" but it is not reading it
from what i
wanted.

                   i will tell u in deatil i have sample annotation it look
for string "who".i had typesystem descriptor and analysisEngine.xml
s.inthis Example application i have passed this anlyiss
enigne.but according to user guide it should take these 3 strings also coz
we are parsing the xml content before AE.

             i am still at basic level and i know that u are genoius coz i
see *Michael Baessler what ever i down load.*
* i hope u got my point.*
*vijay*

**


On 9/17/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> I'm not sure what exactly was your question... but please look at the
> JavaDoc for the setConfigParameterValue() method
>
> /**
>   * Sets the value of a configuration parameter. This only works for a
> parameter that is not
>   * defined in any group. Note that there is no guarantee that the
> change will take effect until
>   * {@link #reconfigure()} is called.
>   *
>   * @param aParamName
>   *          the name of a parameter that is not in any group
>   * @param aValue
>   *          the value to assign to the parameter
>   */
> public void setConfigParameterValue(String aParamName, Object aValue);
>
> I don't see any reconfigure() call in your application. You may also
> have to implement reconfigure() in your annotator!
>
> -- Michael
>
> vijay vijay wrote:
> > HI
> >      *Michael Baessler*
> >                                      i got the source code(UIMA
> > EXAMPLES) for what i am loking for.
> >   Adam amd matt are helping me.i will send u my ExampleApplication
> > which is copied from source code of ExampleApplication.it is working
> > but it is not reading what i want.
> >
> >             so Michael if u have time just go through it tell me what
> > to do.
> > My exact douat is here
> >
> > ae.setConfigParameterValue("StringsToAnnotate", *new* String[]
> >
> > {"Michael","UIMA","Vijay" });
> >
> > here i am frowarding it as configaration parameter but it is not
> > reading these strings.insted it is reading from the analysis enginne
> > where i have i given name of the class file the class and string i
> > have given it there.
> >
> > thank u
> > vijay
> >
> > On 9/17/07, *Michael Baessler* <mba@michael-baessler.de
> > <ma...@michael-baessler.de>> wrote:
> >
> >     Sorry I can't find your posting. Where do you have added your
> >     requirements?
> >
> >     -- Michael
> >
> >     Danai Wiriyayanyongsuk wrote:
> >     > Sorry for taking a while for posting. It is now posted in the
> >     page. All
> >     > comments/suggestions/discussions are very welcome.
> >     >
> >     > Thanks,
> >     > Danai Wiriyayanyongsuk
> >     >
> >     > On 9/1/07, Michael Baessler < mba@michael-baessler.de
> >     <ma...@michael-baessler.de>> wrote:
> >     >
> >     >> Since this is a new requirement for UIMA can you please add it
> >     with some
> >     >> information to the
> >     >> UIMA wiki? There is a section where we gather UIMA requirements.
> >     >> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
> >     >>
> >     >> Thanks!
> >     >>
> >     >> -- Michael
> >     >>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by Michael Baessler <mb...@michael-baessler.de>.
I'm not sure what exactly was your question... but please look at the 
JavaDoc for the setConfigParameterValue() method

  /**
   * Sets the value of a configuration parameter. This only works for a 
parameter that is not
   * defined in any group. Note that there is no guarantee that the 
change will take effect until
   * {@link #reconfigure()} is called.
   *
   * @param aParamName
   *          the name of a parameter that is not in any group
   * @param aValue
   *          the value to assign to the parameter
   */
  public void setConfigParameterValue(String aParamName, Object aValue);

I don't see any reconfigure() call in your application. You may also 
have to implement reconfigure() in your annotator!

-- Michael

vijay vijay wrote:
> HI
>      *Michael Baessler*
>                                      i got the source code(UIMA 
> EXAMPLES) for what i am loking for.
>   Adam amd matt are helping me.i will send u my ExampleApplication 
> which is copied from source code of ExampleApplication.it is working 
> but it is not reading what i want.
>  
>             so Michael if u have time just go through it tell me what 
> to do.
> My exact douat is here
>  
> ae.setConfigParameterValue("StringsToAnnotate", *new* String[]
>
> {"Michael","UIMA","Vijay" });
>
> here i am frowarding it as configaration parameter but it is not 
> reading these strings.insted it is reading from the analysis enginne 
> where i have i given name of the class file the class and string i 
> have given it there.
>  
> thank u
> vijay
>  
> On 9/17/07, *Michael Baessler* <mba@michael-baessler.de 
> <ma...@michael-baessler.de>> wrote:
>
>     Sorry I can't find your posting. Where do you have added your
>     requirements?
>
>     -- Michael
>
>     Danai Wiriyayanyongsuk wrote:
>     > Sorry for taking a while for posting. It is now posted in the
>     page. All
>     > comments/suggestions/discussions are very welcome.
>     >
>     > Thanks,
>     > Danai Wiriyayanyongsuk
>     >
>     > On 9/1/07, Michael Baessler < mba@michael-baessler.de
>     <ma...@michael-baessler.de>> wrote:
>     >
>     >> Since this is a new requirement for UIMA can you please add it
>     with some
>     >> information to the
>     >> UIMA wiki? There is a section where we gather UIMA requirements.
>     >> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
>     >>
>     >> Thanks!
>     >>
>     >> -- Michael
>     >>
>
>


Re: UIMA 2.2 Class Loader

Posted by vijay vijay <vi...@gmail.com>.
HI
     *Michael Baessler*
                                     i got the source code(UIMA EXAMPLES)
for what i am loking for.
  Adam amd matt are helping me.i will send u my ExampleApplication which is
copied from source code of ExampleApplication.it is working but it is not
reading what i want.

            so Michael if u have time just go through it tell me what to do.
My exact douat is here

ae.setConfigParameterValue("StringsToAnnotate", *new* String[]

{"Michael","UIMA","Vijay"});
here i am frowarding it as configaration parameter but it is not reading
these strings.insted it is reading from the analysis enginne where i have i
given name of the class file the class and string i have given it there.

thank u
vijay

On 9/17/07, Michael Baessler <mb...@michael-baessler.de> wrote:

> Sorry I can't find your posting. Where do you have added your
> requirements?
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
> > Sorry for taking a while for posting. It is now posted in the page. All
> > comments/suggestions/discussions are very welcome.
> >
> > Thanks,
> > Danai Wiriyayanyongsuk
> >
> > On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> >> Since this is a new requirement for UIMA can you please add it with
> some
> >> information to the
> >> UIMA wiki? There is a section where we gather UIMA requirements.
> >> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
> >>
> >> Thanks!
> >>
> >> -- Michael
> >>
>

Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
Thanks Eugenie! That is the right location (http://cwiki.apache.org
>
> /confluence/display/UIMA/UIMA+Requirements?showComments=true#comments).
> Sorry for the late reply. I've been busy lately.


Regards,
Danai




On 9/17/07, egiesbre@uni-osnabrueck.de <eg...@uni-osnabrueck.de> wrote:
>
> I guess, it's right here:
>
> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements?showComments=true#comments
>
> - i.e. under "Comments" to UIMA class loading extension
>
> Best,
> Eugenie
>
> > Sorry I can't find your posting. Where do you have added your
> > requirements?
> >
> > -- Michael
> >
> > Danai Wiriyayanyongsuk wrote:
> >> Sorry for taking a while for posting. It is now posted in the page. All
> >> comments/suggestions/discussions are very welcome.
> >>
> >> Thanks,
> >> Danai Wiriyayanyongsuk
> >>
> >> On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>
> >>> Since this is a new requirement for UIMA can you please add it with
> >>> some
> >>> information to the
> >>> UIMA wiki? There is a section where we gather UIMA requirements.
> >>> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
> >>>
> >>> Thanks!
> >>>
> >>> -- Michael
> >>>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by eg...@uni-osnabrueck.de.
I guess, it's right here:
http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements?showComments=true#comments

- i.e. under "Comments" to UIMA class loading extension

Best,
Eugenie

> Sorry I can't find your posting. Where do you have added your
> requirements?
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
>> Sorry for taking a while for posting. It is now posted in the page. All
>> comments/suggestions/discussions are very welcome.
>>
>> Thanks,
>> Danai Wiriyayanyongsuk
>>
>> On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>
>>> Since this is a new requirement for UIMA can you please add it with
>>> some
>>> information to the
>>> UIMA wiki? There is a section where we gather UIMA requirements.
>>> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
>>>
>>> Thanks!
>>>
>>> -- Michael
>>>
>
>


Re: UIMA 2.2 Class Loader

Posted by Michael Baessler <mb...@michael-baessler.de>.
Sorry I can't find your posting. Where do you have added your requirements?

-- Michael

Danai Wiriyayanyongsuk wrote:
> Sorry for taking a while for posting. It is now posted in the page. All
> comments/suggestions/discussions are very welcome.
>
> Thanks,
> Danai Wiriyayanyongsuk
>
> On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>   
>> Since this is a new requirement for UIMA can you please add it with some
>> information to the
>> UIMA wiki? There is a section where we gather UIMA requirements.
>> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
>>
>> Thanks!
>>
>> -- Michael
>>     

Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
Sorry for taking a while for posting. It is now posted in the page. All
comments/suggestions/discussions are very welcome.

Thanks,
Danai Wiriyayanyongsuk

On 9/1/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Since this is a new requirement for UIMA can you please add it with some
> information to the
> UIMA wiki? There is a section where we gather UIMA requirements.
> http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements
>
> Thanks!
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
> > That looks like a really good idea! :D
> >
> > Just a thought, in case of that a PEAR descriptor is specified, there
> will
> > be two classpath information: one for the PEAR itself and another one
> from
> > the XML tag. It would be nice to also add an attribute for the classpath
> to
> > indicate how the one specified in XML should be use. For example:
> >    <classpath usage="append | addfirst | override"> classpath settings
> > </classpath>
> >
> > My two cents :)
> > Danai Wiriyayanyongsuk
> >
> >
> > On 8/31/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> >> Currently there is no way to specify a classpath for a primitive AE
> that
> >> is used in an aggregate without having the PEAR file structure.
> >>
> >> I think you are searching for an option like
> >>
> >>     <delegateAnalysisEngine key="PearDesc">
> >>         <import location="AnalysisEngine.xml"/>
> >>         <classpath> classpath settings </classpath>
> >>     </delegateAnalysisEngine>
> >>
> >> to specify the classpath of a component using a descriptor. Maybe a new
> >> requirement :-)
> >>
> >> -- Michael
> >>
> >>
> >> Danai Wiriyayanyongsuk wrote:
> >>
> >>> Thanks Michael for the detailed information! Actually, I tried the
> >>>
> >> similar
> >>
> >>> thing before previous posting but didn't work. It seemed like the
> whole
> >>> delegateAnalysisEngine tag wasn't there as the annotator class didn't
> >>>
> >> get
> >>
> >>> loaded. However, it worked when I switched to the location pointed to
> >>>
> >> the
> >>
> >>> primitive AE description instead.
> >>>
> >>> I'll double check and keep you posted. Unfortunately, it might take me
> >>> sometime to get back the result as I just got assigned to a small
> urgent
> >>> work.
> >>>
> >>> I appreciated the help :)
> >>>
> >>> Anyway, is there a way to dynamically create a PEAR-like, isolated
> class
> >>> loader environment for a primitive AE where there is no real PEAR
> file,
> >>>
> >> so
> >>
> >>> that the dynamically generated primitve AE description can be directly
> >>>
> >> used
> >>
> >>> in an aggregate AE description, assuming that the primitive AE's
> >>>
> >> classpath
> >>
> >>> is known?
> >>>
> >>> Thanks,
> >>> Danai Wiriyayanyongsuk
> >>>
> >>>
> >>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>
> >>>
> >>>> Adding the PEAR descriptor as delegate to a aggregate AE should work.
> I
> >>>> have tested this successfully.
> >>>> PEAR descriptors can be used similar to a primitive or aggregate AE
> >>>> descriptor.
> >>>>
> >>>>      <delegateAnalysisEngine key="PearDesc">
> >>>>          <import
> >>>> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
> >>>>      </delegateAnalysisEngine>
> >>>>
> >>>> If that doesn't work please provide me some detailed information
> about
> >>>> the error. You can also try for testing to
> >>>> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
> >>>> tooling. That should also work. So you
> >>>> can verify that the PEAR descriptor referring an AE works as
> expected.
> >>>>
> >>>> Hope that helps.
> >>>>
> >>>> -- Michael
> >>>>
> >>>> Danai Wiriyayanyongsuk wrote:
> >>>>
> >>>>
> >>>>> Thanks Michael. Yes, I have my primitive engines available as PEAR
> >>>>>
> >>>>>
> >>>> files. I
> >>>>
> >>>>
> >>>>> also have the auto-generated PEAR descriptors.
> >>>>>
> >>>>> Michael's Quote: "This descriptor have to be used in the aggregate
> to
> >>>>>
> >>>>>
> >>>> refer
> >>>>
> >>>>
> >>>>> to the primitive AEs."
> >>>>> Question: How to refer the PEAR descriptors to their primitive AEs
> in
> >>>>>
> >>>>>
> >>>> the
> >>>>
> >>>>
> >>>>> aggregate? Is it documented somewhere? In the aggregate AE
> >>>>>
> >> description,
> >>
> >>>> I
> >>>>
> >>>>
> >>>>> tried to specify the location of the PEAR descriptors in
> >>>>> "delegateAnalysisEngine/import" but didn't work.
> >>>>>
> >>>>> Thanks,
> >>>>> Danai Wiriyayanyongsuk
> >>>>>
> >>>>>
> >>>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Are your primitive engines available as PEAR files? That is needed
> >>>>>>
> >>>>>>
> >>>> since
> >>>>
> >>>>
> >>>>>> only if you have them as PEAR files
> >>>>>> you can use the PEAR descriptor.
> >>>>>>
> >>>>>> After you have installed the PEAR files a PEAR descriptor is
> >>>>>> automatically generated (located in the install directory). This
> >>>>>> descriptor have to
> >>>>>> be used in the aggregate to refer to the primitive AEs.
> >>>>>>
> >>>>>> -- Michael
> >>>>>>
> >>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Thanks Marshall for the information and for asking :)
> >>>>>>>
> >>>>>>> What I have tried is that I have a description of an aggregate
> >>>>>>>
> >>>>>>>
> >>>> analysis
> >>>>
> >>>>
> >>>>>>> engine which has 4 primitive analysis engine defined. Those
> >>>>>>>
> >> primitive
> >>
> >>>> AE
> >>>>
> >>>>
> >>>>>>> descriptions are all fully defined (no imports) under the
> >>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> because
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> those primitive AE descriptions are generated on the fly. For one
> >>>>>>>
> >>>>>>>
> >>>> thing,
> >>>>
> >>>>
> >>>>>>> each primitive AE has its own PEAR-compliant directory. In this
> >>>>>>>
> >> case,
> >>
> >>>> I
> >>>>
> >>>>
> >>>>>>> could not figure out how to tell UIMA the location those
> >>>>>>>
> >> directories.
> >>
> >>>>>>> Excerpt from section 5.8 in the UIMA References page:
> >>>>>>> "As of version 2.2, the framework supports component descriptors
> >>>>>>>
> >> which
> >>
> >>>>>>>
> >>>>>> are
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> PEAR descriptors. These descriptors define components plus include
> >>>>>>> information on the class path needed to run them."
> >>>>>>> Question: To get the individual class loader for each primitive AE
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> defined
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> >>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> >>>>>>>
> >> where
> >>
> >>>>>>>
> >>>>>> and
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> how to do it?
> >>>>>>>
> >>>>>>> Any comments/recommendations would be appreciated.
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>>>>> descriptors, which include the class path information.
> >>>>>>>>
> >>>>>>>> This should allow you to run a pipeline where each annotator
> could
> >>>>>>>>
> >>>>>>>>
> >>>> have
> >>>>
> >>>>
> >>>>>>>> different versions of classes.
> >>>>>>>> See
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >>>>>>>> Is that what you're trying to do?
> >>>>>>>>
> >>>>>>>> -Marshall
> >>>>>>>>
> >>>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Hi Guys,
> >>>>>>>>>
> >>>>>>>>> I'd like to ask a couple of questions regarding the classloader
> in
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>> UIMA
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>> 2.2.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>>>>
> >>>>>>>>>
> >>>> different
> >>>>
> >>>>
> >>>>>>>> class
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> loaders for each aggregated primitive analysis engines, so that
> >>>>>>>>>
> >> the
> >>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> classes
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> won't interfere each others?
> >>>>>>>>>
> >>>>>>>>> If there is so, could you please shed some light how to do it?
> >>>>>>>>>
> >> I've
> >>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> looked
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> into the source code and documentation but no luck :(
> >>>>>>>>>
> >>>>>>>>> Many Thanks,
> >>>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>
> >>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by Michael Baessler <mb...@michael-baessler.de>.
Since this is a new requirement for UIMA can you please add it with some 
information to the
UIMA wiki? There is a section where we gather UIMA requirements.
http://cwiki.apache.org/confluence/display/UIMA/UIMA+Requirements

Thanks!

-- Michael

Danai Wiriyayanyongsuk wrote:
> That looks like a really good idea! :D
>
> Just a thought, in case of that a PEAR descriptor is specified, there will
> be two classpath information: one for the PEAR itself and another one from
> the XML tag. It would be nice to also add an attribute for the classpath to
> indicate how the one specified in XML should be use. For example:
>    <classpath usage="append | addfirst | override"> classpath settings
> </classpath>
>
> My two cents :)
> Danai Wiriyayanyongsuk
>
>
> On 8/31/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>   
>> Currently there is no way to specify a classpath for a primitive AE that
>> is used in an aggregate without having the PEAR file structure.
>>
>> I think you are searching for an option like
>>
>>     <delegateAnalysisEngine key="PearDesc">
>>         <import location="AnalysisEngine.xml"/>
>>         <classpath> classpath settings </classpath>
>>     </delegateAnalysisEngine>
>>
>> to specify the classpath of a component using a descriptor. Maybe a new
>> requirement :-)
>>
>> -- Michael
>>
>>
>> Danai Wiriyayanyongsuk wrote:
>>     
>>> Thanks Michael for the detailed information! Actually, I tried the
>>>       
>> similar
>>     
>>> thing before previous posting but didn't work. It seemed like the whole
>>> delegateAnalysisEngine tag wasn't there as the annotator class didn't
>>>       
>> get
>>     
>>> loaded. However, it worked when I switched to the location pointed to
>>>       
>> the
>>     
>>> primitive AE description instead.
>>>
>>> I'll double check and keep you posted. Unfortunately, it might take me
>>> sometime to get back the result as I just got assigned to a small urgent
>>> work.
>>>
>>> I appreciated the help :)
>>>
>>> Anyway, is there a way to dynamically create a PEAR-like, isolated class
>>> loader environment for a primitive AE where there is no real PEAR file,
>>>       
>> so
>>     
>>> that the dynamically generated primitve AE description can be directly
>>>       
>> used
>>     
>>> in an aggregate AE description, assuming that the primitive AE's
>>>       
>> classpath
>>     
>>> is known?
>>>
>>> Thanks,
>>> Danai Wiriyayanyongsuk
>>>
>>>
>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>
>>>       
>>>> Adding the PEAR descriptor as delegate to a aggregate AE should work. I
>>>> have tested this successfully.
>>>> PEAR descriptors can be used similar to a primitive or aggregate AE
>>>> descriptor.
>>>>
>>>>      <delegateAnalysisEngine key="PearDesc">
>>>>          <import
>>>> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
>>>>      </delegateAnalysisEngine>
>>>>
>>>> If that doesn't work please provide me some detailed information about
>>>> the error. You can also try for testing to
>>>> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
>>>> tooling. That should also work. So you
>>>> can verify that the PEAR descriptor referring an AE works as expected.
>>>>
>>>> Hope that helps.
>>>>
>>>> -- Michael
>>>>
>>>> Danai Wiriyayanyongsuk wrote:
>>>>
>>>>         
>>>>> Thanks Michael. Yes, I have my primitive engines available as PEAR
>>>>>
>>>>>           
>>>> files. I
>>>>
>>>>         
>>>>> also have the auto-generated PEAR descriptors.
>>>>>
>>>>> Michael's Quote: "This descriptor have to be used in the aggregate to
>>>>>
>>>>>           
>>>> refer
>>>>
>>>>         
>>>>> to the primitive AEs."
>>>>> Question: How to refer the PEAR descriptors to their primitive AEs in
>>>>>
>>>>>           
>>>> the
>>>>
>>>>         
>>>>> aggregate? Is it documented somewhere? In the aggregate AE
>>>>>           
>> description,
>>     
>>>> I
>>>>
>>>>         
>>>>> tried to specify the location of the PEAR descriptors in
>>>>> "delegateAnalysisEngine/import" but didn't work.
>>>>>
>>>>> Thanks,
>>>>> Danai Wiriyayanyongsuk
>>>>>
>>>>>
>>>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> Are your primitive engines available as PEAR files? That is needed
>>>>>>
>>>>>>             
>>>> since
>>>>
>>>>         
>>>>>> only if you have them as PEAR files
>>>>>> you can use the PEAR descriptor.
>>>>>>
>>>>>> After you have installed the PEAR files a PEAR descriptor is
>>>>>> automatically generated (located in the install directory). This
>>>>>> descriptor have to
>>>>>> be used in the aggregate to refer to the primitive AEs.
>>>>>>
>>>>>> -- Michael
>>>>>>
>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Thanks Marshall for the information and for asking :)
>>>>>>>
>>>>>>> What I have tried is that I have a description of an aggregate
>>>>>>>
>>>>>>>               
>>>> analysis
>>>>
>>>>         
>>>>>>> engine which has 4 primitive analysis engine defined. Those
>>>>>>>               
>> primitive
>>     
>>>> AE
>>>>
>>>>         
>>>>>>> descriptions are all fully defined (no imports) under the
>>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> because
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> those primitive AE descriptions are generated on the fly. For one
>>>>>>>
>>>>>>>               
>>>> thing,
>>>>
>>>>         
>>>>>>> each primitive AE has its own PEAR-compliant directory. In this
>>>>>>>               
>> case,
>>     
>>>> I
>>>>
>>>>         
>>>>>>> could not figure out how to tell UIMA the location those
>>>>>>>               
>> directories.
>>     
>>>>>>> Excerpt from section 5.8 in the UIMA References page:
>>>>>>> "As of version 2.2, the framework supports component descriptors
>>>>>>>               
>> which
>>     
>>>>>>>               
>>>>>> are
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> PEAR descriptors. These descriptors define components plus include
>>>>>>> information on the class path needed to run them."
>>>>>>> Question: To get the individual class loader for each primitive AE
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> defined
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
>>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
>>>>>>>               
>> where
>>     
>>>>>>>               
>>>>>> and
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> how to do it?
>>>>>>>
>>>>>>> Any comments/recommendations would be appreciated.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>>>>> descriptors, which include the class path information.
>>>>>>>>
>>>>>>>> This should allow you to run a pipeline where each annotator could
>>>>>>>>
>>>>>>>>                 
>>>> have
>>>>
>>>>         
>>>>>>>> different versions of classes.
>>>>>>>> See
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>     
>>>>>>>> Is that what you're trying to do?
>>>>>>>>
>>>>>>>> -Marshall
>>>>>>>>
>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Hi Guys,
>>>>>>>>>
>>>>>>>>> I'd like to ask a couple of questions regarding the classloader in
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>> UIMA
>>>>>>
>>>>>>
>>>>>>             
>>>>>>>> 2.2.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>>>>
>>>>>>>>>                   
>>>> different
>>>>
>>>>         
>>>>>>>> class
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> loaders for each aggregated primitive analysis engines, so that
>>>>>>>>>                   
>> the
>>     
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>> classes
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> won't interfere each others?
>>>>>>>>>
>>>>>>>>> If there is so, could you please shed some light how to do it?
>>>>>>>>>                   
>> I've
>>     
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>> looked
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> into the source code and documentation but no luck :(
>>>>>>>>>
>>>>>>>>> Many Thanks,
>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>       
>>     
>
>   


Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
That looks like a really good idea! :D

Just a thought, in case of that a PEAR descriptor is specified, there will
be two classpath information: one for the PEAR itself and another one from
the XML tag. It would be nice to also add an attribute for the classpath to
indicate how the one specified in XML should be use. For example:
   <classpath usage="append | addfirst | override"> classpath settings
</classpath>

My two cents :)
Danai Wiriyayanyongsuk


On 8/31/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Currently there is no way to specify a classpath for a primitive AE that
> is used in an aggregate without having the PEAR file structure.
>
> I think you are searching for an option like
>
>     <delegateAnalysisEngine key="PearDesc">
>         <import location="AnalysisEngine.xml"/>
>         <classpath> classpath settings </classpath>
>     </delegateAnalysisEngine>
>
> to specify the classpath of a component using a descriptor. Maybe a new
> requirement :-)
>
> -- Michael
>
>
> Danai Wiriyayanyongsuk wrote:
> > Thanks Michael for the detailed information! Actually, I tried the
> similar
> > thing before previous posting but didn't work. It seemed like the whole
> > delegateAnalysisEngine tag wasn't there as the annotator class didn't
> get
> > loaded. However, it worked when I switched to the location pointed to
> the
> > primitive AE description instead.
> >
> > I'll double check and keep you posted. Unfortunately, it might take me
> > sometime to get back the result as I just got assigned to a small urgent
> > work.
> >
> > I appreciated the help :)
> >
> > Anyway, is there a way to dynamically create a PEAR-like, isolated class
> > loader environment for a primitive AE where there is no real PEAR file,
> so
> > that the dynamically generated primitve AE description can be directly
> used
> > in an aggregate AE description, assuming that the primitive AE's
> classpath
> > is known?
> >
> > Thanks,
> > Danai Wiriyayanyongsuk
> >
> >
> > On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> >> Adding the PEAR descriptor as delegate to a aggregate AE should work. I
> >> have tested this successfully.
> >> PEAR descriptors can be used similar to a primitive or aggregate AE
> >> descriptor.
> >>
> >>      <delegateAnalysisEngine key="PearDesc">
> >>          <import
> >> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
> >>      </delegateAnalysisEngine>
> >>
> >> If that doesn't work please provide me some detailed information about
> >> the error. You can also try for testing to
> >> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
> >> tooling. That should also work. So you
> >> can verify that the PEAR descriptor referring an AE works as expected.
> >>
> >> Hope that helps.
> >>
> >> -- Michael
> >>
> >> Danai Wiriyayanyongsuk wrote:
> >>
> >>> Thanks Michael. Yes, I have my primitive engines available as PEAR
> >>>
> >> files. I
> >>
> >>> also have the auto-generated PEAR descriptors.
> >>>
> >>> Michael's Quote: "This descriptor have to be used in the aggregate to
> >>>
> >> refer
> >>
> >>> to the primitive AEs."
> >>> Question: How to refer the PEAR descriptors to their primitive AEs in
> >>>
> >> the
> >>
> >>> aggregate? Is it documented somewhere? In the aggregate AE
> description,
> >>>
> >> I
> >>
> >>> tried to specify the location of the PEAR descriptors in
> >>> "delegateAnalysisEngine/import" but didn't work.
> >>>
> >>> Thanks,
> >>> Danai Wiriyayanyongsuk
> >>>
> >>>
> >>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>
> >>>
> >>>> Are your primitive engines available as PEAR files? That is needed
> >>>>
> >> since
> >>
> >>>> only if you have them as PEAR files
> >>>> you can use the PEAR descriptor.
> >>>>
> >>>> After you have installed the PEAR files a PEAR descriptor is
> >>>> automatically generated (located in the install directory). This
> >>>> descriptor have to
> >>>> be used in the aggregate to refer to the primitive AEs.
> >>>>
> >>>> -- Michael
> >>>>
> >>>> Danai Wiriyayanyongsuk wrote:
> >>>>
> >>>>
> >>>>> Thanks Marshall for the information and for asking :)
> >>>>>
> >>>>> What I have tried is that I have a description of an aggregate
> >>>>>
> >> analysis
> >>
> >>>>> engine which has 4 primitive analysis engine defined. Those
> primitive
> >>>>>
> >> AE
> >>
> >>>>> descriptions are all fully defined (no imports) under the
> >>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> >>>>>
> >>>>>
> >>>> because
> >>>>
> >>>>
> >>>>> those primitive AE descriptions are generated on the fly. For one
> >>>>>
> >> thing,
> >>
> >>>>> each primitive AE has its own PEAR-compliant directory. In this
> case,
> >>>>>
> >> I
> >>
> >>>>> could not figure out how to tell UIMA the location those
> directories.
> >>>>>
> >>>>> Excerpt from section 5.8 in the UIMA References page:
> >>>>> "As of version 2.2, the framework supports component descriptors
> which
> >>>>>
> >>>>>
> >>>> are
> >>>>
> >>>>
> >>>>> PEAR descriptors. These descriptors define components plus include
> >>>>> information on the class path needed to run them."
> >>>>> Question: To get the individual class loader for each primitive AE
> >>>>>
> >>>>>
> >>>> defined
> >>>>
> >>>>
> >>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> >>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> where
> >>>>>
> >>>>>
> >>>> and
> >>>>
> >>>>
> >>>>> how to do it?
> >>>>>
> >>>>> Any comments/recommendations would be appreciated.
> >>>>>
> >>>>> Thanks,
> >>>>> Danai Wiriyayanyongsuk
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>>> descriptors, which include the class path information.
> >>>>>>
> >>>>>> This should allow you to run a pipeline where each annotator could
> >>>>>>
> >> have
> >>
> >>>>>> different versions of classes.
> >>>>>> See
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >>>>>> Is that what you're trying to do?
> >>>>>>
> >>>>>> -Marshall
> >>>>>>
> >>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi Guys,
> >>>>>>>
> >>>>>>> I'd like to ask a couple of questions regarding the classloader in
> >>>>>>>
> >>>>>>>
> >>>> UIMA
> >>>>
> >>>>
> >>>>>> 2.2.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>>
> >> different
> >>
> >>>>>>>
> >>>>>> class
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> loaders for each aggregated primitive analysis engines, so that
> the
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> classes
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> won't interfere each others?
> >>>>>>>
> >>>>>>> If there is so, could you please shed some light how to do it?
> I've
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> looked
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> into the source code and documentation but no luck :(
> >>>>>>>
> >>>>>>> Many Thanks,
> >>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>
> >>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by Michael Baessler <mb...@michael-baessler.de>.
Currently there is no way to specify a classpath for a primitive AE that 
is used in an aggregate without having the PEAR file structure.

I think you are searching for an option like

     <delegateAnalysisEngine key="PearDesc">
         <import location="AnalysisEngine.xml"/>
         <classpath> classpath settings </classpath>
     </delegateAnalysisEngine>

to specify the classpath of a component using a descriptor. Maybe a new 
requirement :-)

-- Michael


Danai Wiriyayanyongsuk wrote:
> Thanks Michael for the detailed information! Actually, I tried the similar
> thing before previous posting but didn't work. It seemed like the whole
> delegateAnalysisEngine tag wasn't there as the annotator class didn't get
> loaded. However, it worked when I switched to the location pointed to the
> primitive AE description instead.
>
> I'll double check and keep you posted. Unfortunately, it might take me
> sometime to get back the result as I just got assigned to a small urgent
> work.
>
> I appreciated the help :)
>
> Anyway, is there a way to dynamically create a PEAR-like, isolated class
> loader environment for a primitive AE where there is no real PEAR file, so
> that the dynamically generated primitve AE description can be directly used
> in an aggregate AE description, assuming that the primitive AE's classpath
> is known?
>
> Thanks,
> Danai Wiriyayanyongsuk
>
>
> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>   
>> Adding the PEAR descriptor as delegate to a aggregate AE should work. I
>> have tested this successfully.
>> PEAR descriptors can be used similar to a primitive or aggregate AE
>> descriptor.
>>
>>      <delegateAnalysisEngine key="PearDesc">
>>          <import
>> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
>>      </delegateAnalysisEngine>
>>
>> If that doesn't work please provide me some detailed information about
>> the error. You can also try for testing to
>> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
>> tooling. That should also work. So you
>> can verify that the PEAR descriptor referring an AE works as expected.
>>
>> Hope that helps.
>>
>> -- Michael
>>
>> Danai Wiriyayanyongsuk wrote:
>>     
>>> Thanks Michael. Yes, I have my primitive engines available as PEAR
>>>       
>> files. I
>>     
>>> also have the auto-generated PEAR descriptors.
>>>
>>> Michael's Quote: "This descriptor have to be used in the aggregate to
>>>       
>> refer
>>     
>>> to the primitive AEs."
>>> Question: How to refer the PEAR descriptors to their primitive AEs in
>>>       
>> the
>>     
>>> aggregate? Is it documented somewhere? In the aggregate AE description,
>>>       
>> I
>>     
>>> tried to specify the location of the PEAR descriptors in
>>> "delegateAnalysisEngine/import" but didn't work.
>>>
>>> Thanks,
>>> Danai Wiriyayanyongsuk
>>>
>>>
>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>
>>>       
>>>> Are your primitive engines available as PEAR files? That is needed
>>>>         
>> since
>>     
>>>> only if you have them as PEAR files
>>>> you can use the PEAR descriptor.
>>>>
>>>> After you have installed the PEAR files a PEAR descriptor is
>>>> automatically generated (located in the install directory). This
>>>> descriptor have to
>>>> be used in the aggregate to refer to the primitive AEs.
>>>>
>>>> -- Michael
>>>>
>>>> Danai Wiriyayanyongsuk wrote:
>>>>
>>>>         
>>>>> Thanks Marshall for the information and for asking :)
>>>>>
>>>>> What I have tried is that I have a description of an aggregate
>>>>>           
>> analysis
>>     
>>>>> engine which has 4 primitive analysis engine defined. Those primitive
>>>>>           
>> AE
>>     
>>>>> descriptions are all fully defined (no imports) under the
>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
>>>>>
>>>>>           
>>>> because
>>>>
>>>>         
>>>>> those primitive AE descriptions are generated on the fly. For one
>>>>>           
>> thing,
>>     
>>>>> each primitive AE has its own PEAR-compliant directory. In this case,
>>>>>           
>> I
>>     
>>>>> could not figure out how to tell UIMA the location those directories.
>>>>>
>>>>> Excerpt from section 5.8 in the UIMA References page:
>>>>> "As of version 2.2, the framework supports component descriptors which
>>>>>
>>>>>           
>>>> are
>>>>
>>>>         
>>>>> PEAR descriptors. These descriptors define components plus include
>>>>> information on the class path needed to run them."
>>>>> Question: To get the individual class loader for each primitive AE
>>>>>
>>>>>           
>>>> defined
>>>>
>>>>         
>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so, where
>>>>>
>>>>>           
>>>> and
>>>>
>>>>         
>>>>> how to do it?
>>>>>
>>>>> Any comments/recommendations would be appreciated.
>>>>>
>>>>> Thanks,
>>>>> Danai Wiriyayanyongsuk
>>>>>
>>>>>
>>>>>
>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>>> descriptors, which include the class path information.
>>>>>>
>>>>>> This should allow you to run a pipeline where each annotator could
>>>>>>             
>> have
>>     
>>>>>> different versions of classes.
>>>>>> See
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>     
>>>>>> Is that what you're trying to do?
>>>>>>
>>>>>> -Marshall
>>>>>>
>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi Guys,
>>>>>>>
>>>>>>> I'd like to ask a couple of questions regarding the classloader in
>>>>>>>
>>>>>>>               
>>>> UIMA
>>>>
>>>>         
>>>>>> 2.2.
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>>               
>> different
>>     
>>>>>>>               
>>>>>> class
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> loaders for each aggregated primitive analysis engines, so that the
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> classes
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> won't interfere each others?
>>>>>>>
>>>>>>> If there is so, could you please shed some light how to do it? I've
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> looked
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> into the source code and documentation but no luck :(
>>>>>>>
>>>>>>> Many Thanks,
>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>       
>>     
>
>   


Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
Thanks Michael for the detailed information! Actually, I tried the similar
thing before previous posting but didn't work. It seemed like the whole
delegateAnalysisEngine tag wasn't there as the annotator class didn't get
loaded. However, it worked when I switched to the location pointed to the
primitive AE description instead.

I'll double check and keep you posted. Unfortunately, it might take me
sometime to get back the result as I just got assigned to a small urgent
work.

I appreciated the help :)

Anyway, is there a way to dynamically create a PEAR-like, isolated class
loader environment for a primitive AE where there is no real PEAR file, so
that the dynamically generated primitve AE description can be directly used
in an aggregate AE description, assuming that the primitive AE's classpath
is known?

Thanks,
Danai Wiriyayanyongsuk


On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Adding the PEAR descriptor as delegate to a aggregate AE should work. I
> have tested this successfully.
> PEAR descriptors can be used similar to a primitive or aggregate AE
> descriptor.
>
>      <delegateAnalysisEngine key="PearDesc">
>          <import
> location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
>      </delegateAnalysisEngine>
>
> If that doesn't work please provide me some detailed information about
> the error. You can also try for testing to
> load the PEAR descriptor directly in the CVD or DocumentAnalyzer
> tooling. That should also work. So you
> can verify that the PEAR descriptor referring an AE works as expected.
>
> Hope that helps.
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
> > Thanks Michael. Yes, I have my primitive engines available as PEAR
> files. I
> > also have the auto-generated PEAR descriptors.
> >
> > Michael's Quote: "This descriptor have to be used in the aggregate to
> refer
> > to the primitive AEs."
> > Question: How to refer the PEAR descriptors to their primitive AEs in
> the
> > aggregate? Is it documented somewhere? In the aggregate AE description,
> I
> > tried to specify the location of the PEAR descriptors in
> > "delegateAnalysisEngine/import" but didn't work.
> >
> > Thanks,
> > Danai Wiriyayanyongsuk
> >
> >
> > On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> >> Are your primitive engines available as PEAR files? That is needed
> since
> >> only if you have them as PEAR files
> >> you can use the PEAR descriptor.
> >>
> >> After you have installed the PEAR files a PEAR descriptor is
> >> automatically generated (located in the install directory). This
> >> descriptor have to
> >> be used in the aggregate to refer to the primitive AEs.
> >>
> >> -- Michael
> >>
> >> Danai Wiriyayanyongsuk wrote:
> >>
> >>> Thanks Marshall for the information and for asking :)
> >>>
> >>> What I have tried is that I have a description of an aggregate
> analysis
> >>> engine which has 4 primitive analysis engine defined. Those primitive
> AE
> >>> descriptions are all fully defined (no imports) under the
> >>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> >>>
> >> because
> >>
> >>> those primitive AE descriptions are generated on the fly. For one
> thing,
> >>> each primitive AE has its own PEAR-compliant directory. In this case,
> I
> >>> could not figure out how to tell UIMA the location those directories.
> >>>
> >>> Excerpt from section 5.8 in the UIMA References page:
> >>> "As of version 2.2, the framework supports component descriptors which
> >>>
> >> are
> >>
> >>> PEAR descriptors. These descriptors define components plus include
> >>> information on the class path needed to run them."
> >>> Question: To get the individual class loader for each primitive AE
> >>>
> >> defined
> >>
> >>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> >>> (<componentID>_pear.xml?) for each of every primitive AE? If so, where
> >>>
> >> and
> >>
> >>> how to do it?
> >>>
> >>> Any comments/recommendations would be appreciated.
> >>>
> >>> Thanks,
> >>> Danai Wiriyayanyongsuk
> >>>
> >>>
> >>>
> >>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>
> >>>
> >>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>> descriptors, which include the class path information.
> >>>>
> >>>> This should allow you to run a pipeline where each annotator could
> have
> >>>> different versions of classes.
> >>>> See
> >>>>
> >>>>
> >>>>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >>>> Is that what you're trying to do?
> >>>>
> >>>> -Marshall
> >>>>
> >>>> Danai Wiriyayanyongsuk wrote:
> >>>>
> >>>>
> >>>>> Hi Guys,
> >>>>>
> >>>>> I'd like to ask a couple of questions regarding the classloader in
> >>>>>
> >> UIMA
> >>
> >>>> 2.2.
> >>>>
> >>>>
> >>>>> For an aggregate analysis engine, is there a way to have/set
> different
> >>>>>
> >>>>>
> >>>> class
> >>>>
> >>>>
> >>>>> loaders for each aggregated primitive analysis engines, so that the
> >>>>>
> >>>>>
> >>>> classes
> >>>>
> >>>>
> >>>>> won't interfere each others?
> >>>>>
> >>>>> If there is so, could you please shed some light how to do it? I've
> >>>>>
> >>>>>
> >>>> looked
> >>>>
> >>>>
> >>>>> into the source code and documentation but no luck :(
> >>>>>
> >>>>> Many Thanks,
> >>>>> Danai Wiriyayanyongsuk
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>
> >>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by Michael Baessler <mb...@michael-baessler.de>.
Adding the PEAR descriptor as delegate to a aggregate AE should work. I 
have tested this successfully.
PEAR descriptors can be used similar to a primitive or aggregate AE 
descriptor.

      <delegateAnalysisEngine key="PearDesc">
          <import 
location="/path/to/the/pear/desc/AnalysisEngine_pear.xml"/>
      </delegateAnalysisEngine>

If that doesn't work please provide me some detailed information about 
the error. You can also try for testing to
load the PEAR descriptor directly in the CVD or DocumentAnalyzer 
tooling. That should also work. So you
can verify that the PEAR descriptor referring an AE works as expected.

Hope that helps.

-- Michael

Danai Wiriyayanyongsuk wrote:
> Thanks Michael. Yes, I have my primitive engines available as PEAR files. I
> also have the auto-generated PEAR descriptors.
>
> Michael's Quote: "This descriptor have to be used in the aggregate to refer
> to the primitive AEs."
> Question: How to refer the PEAR descriptors to their primitive AEs in the
> aggregate? Is it documented somewhere? In the aggregate AE description, I
> tried to specify the location of the PEAR descriptors in
> "delegateAnalysisEngine/import" but didn't work.
>
> Thanks,
> Danai Wiriyayanyongsuk
>
>
> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>   
>> Are your primitive engines available as PEAR files? That is needed since
>> only if you have them as PEAR files
>> you can use the PEAR descriptor.
>>
>> After you have installed the PEAR files a PEAR descriptor is
>> automatically generated (located in the install directory). This
>> descriptor have to
>> be used in the aggregate to refer to the primitive AEs.
>>
>> -- Michael
>>
>> Danai Wiriyayanyongsuk wrote:
>>     
>>> Thanks Marshall for the information and for asking :)
>>>
>>> What I have tried is that I have a description of an aggregate analysis
>>> engine which has 4 primitive analysis engine defined. Those primitive AE
>>> descriptions are all fully defined (no imports) under the
>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
>>>       
>> because
>>     
>>> those primitive AE descriptions are generated on the fly. For one thing,
>>> each primitive AE has its own PEAR-compliant directory. In this case, I
>>> could not figure out how to tell UIMA the location those directories.
>>>
>>> Excerpt from section 5.8 in the UIMA References page:
>>> "As of version 2.2, the framework supports component descriptors which
>>>       
>> are
>>     
>>> PEAR descriptors. These descriptors define components plus include
>>> information on the class path needed to run them."
>>> Question: To get the individual class loader for each primitive AE
>>>       
>> defined
>>     
>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
>>> (<componentID>_pear.xml?) for each of every primitive AE? If so, where
>>>       
>> and
>>     
>>> how to do it?
>>>
>>> Any comments/recommendations would be appreciated.
>>>
>>> Thanks,
>>> Danai Wiriyayanyongsuk
>>>
>>>
>>>
>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>
>>>       
>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>> descriptors, which include the class path information.
>>>>
>>>> This should allow you to run a pipeline where each annotator could have
>>>> different versions of classes.
>>>> See
>>>>
>>>>
>>>>         
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>     
>>>> Is that what you're trying to do?
>>>>
>>>> -Marshall
>>>>
>>>> Danai Wiriyayanyongsuk wrote:
>>>>
>>>>         
>>>>> Hi Guys,
>>>>>
>>>>> I'd like to ask a couple of questions regarding the classloader in
>>>>>           
>> UIMA
>>     
>>>> 2.2.
>>>>
>>>>         
>>>>> For an aggregate analysis engine, is there a way to have/set different
>>>>>
>>>>>           
>>>> class
>>>>
>>>>         
>>>>> loaders for each aggregated primitive analysis engines, so that the
>>>>>
>>>>>           
>>>> classes
>>>>
>>>>         
>>>>> won't interfere each others?
>>>>>
>>>>> If there is so, could you please shed some light how to do it? I've
>>>>>
>>>>>           
>>>> looked
>>>>
>>>>         
>>>>> into the source code and documentation but no luck :(
>>>>>
>>>>> Many Thanks,
>>>>> Danai Wiriyayanyongsuk
>>>>>
>>>>>
>>>>>
>>>>>           
>>>       
>>     
>
>   


Re: UIMA 2.2 Class Loader

Posted by vijay vijay <vi...@gmail.com>.
Hi danial,

               i think i am doing simailar to u.i need help from u.i will
tell u what i have done and what i want to achive.

                    till now i have done one sample program similar to hello
world,ie look for string in mutiple files ie is done.here every thing is
hard coded.so what ihave done is i have strted using the parameters in
analysisengine descriptor.here i am getting an error saying that

"alysis_engine.analysisEngineProcessException:Annotator processing failed
caused by :java.lang.illegalStateException:no match avilable"".

i think error is there in annotator java class.here i will give u the code
for it can u help me back...

i am attching file which contain javaclass


On 8/31/07, Danai Wiriyayanyongsuk <da...@gmail.com> wrote:
>
> Thanks Michael. Yes, I have my primitive engines available as PEAR files.
> I
> also have the auto-generated PEAR descriptors.
>
> Michael's Quote: "This descriptor have to be used in the aggregate to
> refer
> to the primitive AEs."
> Question: How to refer the PEAR descriptors to their primitive AEs in the
> aggregate? Is it documented somewhere? In the aggregate AE description, I
> tried to specify the location of the PEAR descriptors in
> "delegateAnalysisEngine/import" but didn't work.
>
> Thanks,
> Danai Wiriyayanyongsuk
>
>
> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> > Are your primitive engines available as PEAR files? That is needed since
> > only if you have them as PEAR files
> > you can use the PEAR descriptor.
> >
> > After you have installed the PEAR files a PEAR descriptor is
> > automatically generated (located in the install directory). This
> > descriptor have to
> > be used in the aggregate to refer to the primitive AEs.
> >
> > -- Michael
> >
> > Danai Wiriyayanyongsuk wrote:
> > > Thanks Marshall for the information and for asking :)
> > >
> > > What I have tried is that I have a description of an aggregate
> analysis
> > > engine which has 4 primitive analysis engine defined. Those primitive
> AE
> > > descriptions are all fully defined (no imports) under the
> > > "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> > because
> > > those primitive AE descriptions are generated on the fly. For one
> thing,
> > > each primitive AE has its own PEAR-compliant directory. In this case,
> I
> > > could not figure out how to tell UIMA the location those directories.
> > >
> > > Excerpt from section 5.8 in the UIMA References page:
> > > "As of version 2.2, the framework supports component descriptors which
> > are
> > > PEAR descriptors. These descriptors define components plus include
> > > information on the class path needed to run them."
> > > Question: To get the individual class loader for each primitive AE
> > defined
> > > in an aggregate AE, do we have to specify/map the PEAR descriptor
> > > (<componentID>_pear.xml?) for each of every primitive AE? If so, where
> > and
> > > how to do it?
> > >
> > > Any comments/recommendations would be appreciated.
> > >
> > > Thanks,
> > > Danai Wiriyayanyongsuk
> > >
> > >
> > >
> > > On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> > >
> > >> Version 2.2 includes support for aggregates composed of PEAR
> > >> descriptors, which include the class path information.
> > >>
> > >> This should allow you to run a pipeline where each annotator could
> have
> > >> different versions of classes.
> > >> See
> > >>
> > >>
> >
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> > >>
> > >> Is that what you're trying to do?
> > >>
> > >> -Marshall
> > >>
> > >> Danai Wiriyayanyongsuk wrote:
> > >>
> > >>> Hi Guys,
> > >>>
> > >>> I'd like to ask a couple of questions regarding the classloader in
> > UIMA
> > >>>
> > >> 2.2.
> > >>
> > >>> For an aggregate analysis engine, is there a way to have/set
> different
> > >>>
> > >> class
> > >>
> > >>> loaders for each aggregated primitive analysis engines, so that the
> > >>>
> > >> classes
> > >>
> > >>> won't interfere each others?
> > >>>
> > >>> If there is so, could you please shed some light how to do it? I've
> > >>>
> > >> looked
> > >>
> > >>> into the source code and documentation but no luck :(
> > >>>
> > >>> Many Thanks,
> > >>> Danai Wiriyayanyongsuk
> > >>>
> > >>>
> > >>>
> > >>
> > >
> > >
> >
> >
>

Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
Thanks Michael. Yes, I have my primitive engines available as PEAR files. I
also have the auto-generated PEAR descriptors.

Michael's Quote: "This descriptor have to be used in the aggregate to refer
to the primitive AEs."
Question: How to refer the PEAR descriptors to their primitive AEs in the
aggregate? Is it documented somewhere? In the aggregate AE description, I
tried to specify the location of the PEAR descriptors in
"delegateAnalysisEngine/import" but didn't work.

Thanks,
Danai Wiriyayanyongsuk


On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Are your primitive engines available as PEAR files? That is needed since
> only if you have them as PEAR files
> you can use the PEAR descriptor.
>
> After you have installed the PEAR files a PEAR descriptor is
> automatically generated (located in the install directory). This
> descriptor have to
> be used in the aggregate to refer to the primitive AEs.
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
> > Thanks Marshall for the information and for asking :)
> >
> > What I have tried is that I have a description of an aggregate analysis
> > engine which has 4 primitive analysis engine defined. Those primitive AE
> > descriptions are all fully defined (no imports) under the
> > "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> because
> > those primitive AE descriptions are generated on the fly. For one thing,
> > each primitive AE has its own PEAR-compliant directory. In this case, I
> > could not figure out how to tell UIMA the location those directories.
> >
> > Excerpt from section 5.8 in the UIMA References page:
> > "As of version 2.2, the framework supports component descriptors which
> are
> > PEAR descriptors. These descriptors define components plus include
> > information on the class path needed to run them."
> > Question: To get the individual class loader for each primitive AE
> defined
> > in an aggregate AE, do we have to specify/map the PEAR descriptor
> > (<componentID>_pear.xml?) for each of every primitive AE? If so, where
> and
> > how to do it?
> >
> > Any comments/recommendations would be appreciated.
> >
> > Thanks,
> > Danai Wiriyayanyongsuk
> >
> >
> >
> > On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >
> >> Version 2.2 includes support for aggregates composed of PEAR
> >> descriptors, which include the class path information.
> >>
> >> This should allow you to run a pipeline where each annotator could have
> >> different versions of classes.
> >> See
> >>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >> Is that what you're trying to do?
> >>
> >> -Marshall
> >>
> >> Danai Wiriyayanyongsuk wrote:
> >>
> >>> Hi Guys,
> >>>
> >>> I'd like to ask a couple of questions regarding the classloader in
> UIMA
> >>>
> >> 2.2.
> >>
> >>> For an aggregate analysis engine, is there a way to have/set different
> >>>
> >> class
> >>
> >>> loaders for each aggregated primitive analysis engines, so that the
> >>>
> >> classes
> >>
> >>> won't interfere each others?
> >>>
> >>> If there is so, could you please shed some light how to do it? I've
> >>>
> >> looked
> >>
> >>> into the source code and documentation but no luck :(
> >>>
> >>> Many Thanks,
> >>> Danai Wiriyayanyongsuk
> >>>
> >>>
> >>>
> >>
> >
> >
>
>

Re: UIMA Source Code

Posted by Michael Baessler <mb...@michael-baessler.de>.
Please ask the same question only in one place! We are reading all messages!

-- Michael

vijay vijay wrote:
> Hi Adam,
>                  u are right i have added searilizer.jar from xalan,then i
> put that reconfigure method also.now i am able to get the result in IE
> browser.Here i am getting an out put like this
>
> """""""
> uima.tcas.DocumentAnnotation "HI this Michael,who works on UIMA and this
> vijay troubles him ... " sofa = uima.cas.Sofa sofaNum = 1 sofaID =
> "_InitialView" mimeType = "text" sofaArray = null sofaString = "HI this
> Michael,who works on UIMA and this vijay troubles him ..." sofaURI = null
> begin = 0 end = 92 language = "x-unspecified"
> com.iton.uima.TestType"Michael" sofa =
> uima.cas.Sofa sofaNum = 1 sofaID = "_InitialView" mimeType = "text"
> sofaArray = null sofaString = "HI this Michael,who works on UIMA and this
> vijay troubles him ..." sofaURI = null begin = 8 end = 15 TestType =
> "Michael" com.iton.uima.TestType "vijay" sofa = uima.cas.Sofa sofaNum = 1
> sofaID = "_InitialView" mimeType = "text" sofaArray = null sofaString = "HI
> this Michael,who works on UIMA and this vijay troubles him ..." sofaURI =
> null begin = 43 end = 48 TestType = "vijay" com.iton.uima.TestType "dogs"
> sofa = uima.cas.Sofa sofaNum = 1 sofaID = "_InitialView" mimeType = "text"
> sofaArray = null sofaString = "HI this Michael,who works on UIMA and this
> vijay troubles him ..." sofaURI = null begin = 75 end = 79 TestType =
> "dogs"  """"""""""""""
>
> insted of getting only annotations i am getting whole thing.with ur help i
> am able to reach up to this point.i am really thankfull to u.
>
> Here i want to see the output from browser,my questions for u are
>
> 1)how to rectify  the above problem where i am getting above lines in
> browser
> 2)am i in right direction to reach my goal,so from here how do i go
> on............
>
>
> thnak u
> vijay
>
>
>
>
>
>
> On 9/20/07, Adam Lally <al...@alum.rpi.edu> wrote:
>   
>> On 9/20/07, vijay vijay <vi...@gmail.com> wrote:
>>     
>>> caused by java.lang.ClassCastException :
>>> org.apache.xml.dtm.ref.DTMManagerDefault
>>> at org.apache.xml.dtm.DTMManager.newInstance<DTMManager.java:135>
>>> at org.apache.xpath.XPathContext .<init><XPathContext>.java:100>
>>>
>>> at org.apache.xalan.transformer.transfromerImpl.<int><
>>>       
>> TransformerImpl.java
>>     
>>> :397>
>>>
>>>       
>> Ugh... this points to some problem in your Tomcat installation
>> (probably related to xalan.jar again).  It isn't a UIMA problem and
>> I'm not an expert in how to fix it.  Suggestions:
>> 1) Google "ClassCastException
>> org.apache.xml.dtm.ref.DTMManagerDefault" and see if there's a
>> solution there.  I tried it and there are a lot of hits but I don't
>> have time to read them for you. ;)
>> 2) Reinstall the latest Tomcat and try again.
>>
>>
>> Also, about your standalone Java program, I think you need to insert
>> the call to:
>> ae.reconfigure()
>>
>> after the call to
>> ae.setConfigParameterValue(...);
>>
>> Regards,
>> -Adam
>>
>>     
>
>   


Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi Adam,
                 u are right i have added searilizer.jar from xalan,then i
put that reconfigure method also.now i am able to get the result in IE
browser.Here i am getting an out put like this

"""""""
uima.tcas.DocumentAnnotation "HI this Michael,who works on UIMA and this
vijay troubles him ... " sofa = uima.cas.Sofa sofaNum = 1 sofaID =
"_InitialView" mimeType = "text" sofaArray = null sofaString = "HI this
Michael,who works on UIMA and this vijay troubles him ..." sofaURI = null
begin = 0 end = 92 language = "x-unspecified"
com.iton.uima.TestType"Michael" sofa =
uima.cas.Sofa sofaNum = 1 sofaID = "_InitialView" mimeType = "text"
sofaArray = null sofaString = "HI this Michael,who works on UIMA and this
vijay troubles him ..." sofaURI = null begin = 8 end = 15 TestType =
"Michael" com.iton.uima.TestType "vijay" sofa = uima.cas.Sofa sofaNum = 1
sofaID = "_InitialView" mimeType = "text" sofaArray = null sofaString = "HI
this Michael,who works on UIMA and this vijay troubles him ..." sofaURI =
null begin = 43 end = 48 TestType = "vijay" com.iton.uima.TestType "dogs"
sofa = uima.cas.Sofa sofaNum = 1 sofaID = "_InitialView" mimeType = "text"
sofaArray = null sofaString = "HI this Michael,who works on UIMA and this
vijay troubles him ..." sofaURI = null begin = 75 end = 79 TestType =
"dogs"  """"""""""""""

insted of getting only annotations i am getting whole thing.with ur help i
am able to reach up to this point.i am really thankfull to u.

Here i want to see the output from browser,my questions for u are

1)how to rectify  the above problem where i am getting above lines in
browser
2)am i in right direction to reach my goal,so from here how do i go
on............


thnak u
vijay






On 9/20/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 9/20/07, vijay vijay <vi...@gmail.com> wrote:
> > caused by java.lang.ClassCastException :
> > org.apache.xml.dtm.ref.DTMManagerDefault
> > at org.apache.xml.dtm.DTMManager.newInstance<DTMManager.java:135>
> > at org.apache.xpath.XPathContext .<init><XPathContext>.java:100>
> >
> > at org.apache.xalan.transformer.transfromerImpl.<int><
> TransformerImpl.java
> > :397>
> >
>
> Ugh... this points to some problem in your Tomcat installation
> (probably related to xalan.jar again).  It isn't a UIMA problem and
> I'm not an expert in how to fix it.  Suggestions:
> 1) Google "ClassCastException
> org.apache.xml.dtm.ref.DTMManagerDefault" and see if there's a
> solution there.  I tried it and there are a lot of hits but I don't
> have time to read them for you. ;)
> 2) Reinstall the latest Tomcat and try again.
>
>
> Also, about your standalone Java program, I think you need to insert
> the call to:
> ae.reconfigure()
>
> after the call to
> ae.setConfigParameterValue(...);
>
> Regards,
> -Adam
>

Re: UIMA Source Code

Posted by Adam Lally <al...@alum.rpi.edu>.
On 9/20/07, vijay vijay <vi...@gmail.com> wrote:
> caused by java.lang.ClassCastException :
> org.apache.xml.dtm.ref.DTMManagerDefault
> at org.apache.xml.dtm.DTMManager.newInstance<DTMManager.java:135>
> at org.apache.xpath.XPathContext .<init><XPathContext>.java:100>
>
> at org.apache.xalan.transformer.transfromerImpl.<int><TransformerImpl.java
> :397>
>

Ugh... this points to some problem in your Tomcat installation
(probably related to xalan.jar again).  It isn't a UIMA problem and
I'm not an expert in how to fix it.  Suggestions:
1) Google "ClassCastException
org.apache.xml.dtm.ref.DTMManagerDefault" and see if there's a
solution there.  I tried it and there are a lot of hits but I don't
have time to read them for you. ;)
2) Reinstall the latest Tomcat and try again.


Also, about your standalone Java program, I think you need to insert
the call to:
ae.reconfigure()

after the call to
ae.setConfigParameterValue(...);

Regards,
  -Adam

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
H adam,
              i couldn't post yester day here i am giving the more detals
abt my error.

 com.ibm.uim.util.InvalidXMLEXception:invalid descriptor at
file:/c:/tomacat/descriptor/webanalysis.xml.
at com.ibm.uima.reference_impl.util.XMLParser_impl.parse<UnKnown Source>
at com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifier<UnKnown
Source>
at com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifier<UnKnown
Source>

at com.iton.uima.test.doGet<Test.java:56>
at javax.servlet.http.HttpServlet.service<HttpServlet.java:697>
at javax.servlet.http.HttpServlet.service<HttpServlet.java:810>
at org.apche.catalina.core.ApplicationFilterChain.internalDoFilter <
ApplicationFilterChain.java:237>
at org.apche.catalina.core.ApplicationFilterChain.doFilter<
ApplicationFilterChain.java:157>
at org.apche.catalina.core.StandardWrapperValue.invoke<
StandardWrapperValue.java :214>
at org.apche.catalina.core.StandardValueContext.invokeNext<
StandardValueContext.java:104>
at org.apche.catalina.core.StandardPipeLine.invoke<StandardPipeLine.java
:198>
at org.apche.catalina.core.StandardContexvaluet.invokeInternal <
StandardContextValue.java:198>
at org.apche.catalina.core.StandardContexvaluet.invoke<
StandardContextValue.java:152>
at org.apche.catalina.core.StandardValueContext.invokeNext<
StandardValueContext.java :104>
at org.apche.catalina.core.StandardPipeLine.invoke<StandardPipeLine.java
:520>
.............
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run<
threadpool.java:644>
at  java.lan.Thread.run <thread.java:595>
caused by java.lang.ClassCastException :
org.apache.xml.dtm.ref.DTMManagerDefault
at org.apache.xml.dtm.DTMManager.newInstance<DTMManager.java:135>
at org.apache.xpath.XPathContext .<init><XPathContext>.java:100>

at org.apache.xalan.transformer.transfromerImpl.<int><TransformerImpl.java
:397>

.........

 so can u get my error

vijay



On 9/18/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 9/18/07, vijay vijay <vi...@gmail.com> wrote:
> > And main problem is i am not getting in IEBrowser i
> > have given it as like thishttp://localhost:8000//UIMAWeb/servlet/Test
> > here i got error saying "com.ibm.uima.util.InvalidXMLException".invalid
> > descriptor file at"c://tomcat/descriptor/webanalysis.xml".i have tried
> in
> > google but didn't get relevent ones.
> >
>
> Please post the whole stack trace for the InvalidXMLException if you
> can get it.  Usually further down in the stack trace it will say
> "caused by:", followed by a more detailed reason for why the
> descriptor was invalid.
>
>
> About the configuration parameter, you are saying that in your main
> program you call setConfigParameterValue followed by reconfigure(),
> and still your annotator does not get the correct value?  You could
> put a println call in your annotator's initialize() method just to be
> sure the value is not being passed.  Make sure the parameter name is
> spelled the same in all three places - in your main(), in the
> annotator code, and in your annotator's descriptor file.  I'm running
> out of ideas here...
>
> -Adam
>

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi adam,
                i feel happy if u give the steps to fallow. how to develop
UIMA as web application.
i will explain u till now what i have done.
1) have written on servlet with name test.java,
2)i have written one more class with main method
3)i put descriptors like aedescriptor.xml,type,input and out put under web
root and also in tomact folder.


i have run that project  in eclipse console i got the result which is
raeding from the c:/tomacta/descriptor.
once this is over i opend IEBrowser given urlpattern here i got that error
which is there in previous reply.i will add my code it.plz don't mind

i hope u will get my point   what i am trying to say
i was stuck up here
vijay


On 9/18/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 9/18/07, vijay vijay <vi...@gmail.com> wrote:
> > And main problem is i am not getting in IEBrowser i
> > have given it as like thishttp://localhost:8000//UIMAWeb/servlet/Test
> > here i got error saying "com.ibm.uima.util.InvalidXMLException".invalid
> > descriptor file at"c://tomcat/descriptor/webanalysis.xml".i have tried
> in
> > google but didn't get relevent ones.
> >
>
> Please post the whole stack trace for the InvalidXMLException if you
> can get it.  Usually further down in the stack trace it will say
> "caused by:", followed by a more detailed reason for why the
> descriptor was invalid.
>
>
> About the configuration parameter, you are saying that in your main
> program you call setConfigParameterValue followed by reconfigure(),
> and still your annotator does not get the correct value?  You could
> put a println call in your annotator's initialize() method just to be
> sure the value is not being passed.  Make sure the parameter name is
> spelled the same in all three places - in your main(), in the
> annotator code, and in your annotator's descriptor file.  I'm running
> out of ideas here...
>
> -Adam
>

Re: UIMA Source Code

Posted by Adam Lally <al...@alum.rpi.edu>.
On 9/18/07, vijay vijay <vi...@gmail.com> wrote:
> And main problem is i am not getting in IEBrowser i
> have given it as like thishttp://localhost:8000//UIMAWeb/servlet/Test
> here i got error saying "com.ibm.uima.util.InvalidXMLException".invalid
> descriptor file at"c://tomcat/descriptor/webanalysis.xml".i have tried in
> google but didn't get relevent ones.
>

Please post the whole stack trace for the InvalidXMLException if you
can get it.  Usually further down in the stack trace it will say
"caused by:", followed by a more detailed reason for why the
descriptor was invalid.


About the configuration parameter, you are saying that in your main
program you call setConfigParameterValue followed by reconfigure(),
and still your annotator does not get the correct value?  You could
put a println call in your annotator's initialize() method just to be
sure the value is not being passed.  Make sure the parameter name is
spelled the same in all three places - in your main(), in the
annotator code, and in your annotator's descriptor file.  I'm running
out of ideas here...

-Adam

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi adam,
                 as u said i have downloded the xalan.jar and adde it as an
external jar.it is working .it is is giving output  in console like this
@@Processing file inpit.txt
uima.tcas.DocumentAnnotation
"vijay,michale,uima,who are these?"
sofa = uima.cas.Sofa
sofaNum = 1
sofaID = "_InitialView"
mimeType = "text"
sofaArray = null
sofaString = "vijay,michale,uima,who are these?"
sofaURI = null
begin = 0
end = 33
language = "x-unspecified"
com.iton.uima.TestType
"who"
sofa = uima.cas.Sofa                                 //here i have passed
vijay,michale,uima as conigaration parameter but it does't read?
sofaNum = 1                                            //why it happend like
this? here i got "who" this came from where we mention the name of the
sofaID = "_InitialView"                              //class in
webanalysis.xml...
mimeType = "text"
sofaArray = null
sofaString = "vijay,michale,uima,who are these?"
sofaURI = null
begin = 19
end = 22
TestType = "who"@@    And main problem is i am not getting in IEBrowser i
have given it as like thishttp://localhost:8000//UIMAWeb/servlet/Test
here i got error saying "com.ibm.uima.util.InvalidXMLException".invalid
descriptor file at"c://tomcat/descriptor/webanalysis.xml".i have tried in
google but didn't get relevent ones.

if u want to use this as web application wht are thing we have to do
i will explain u what i have done tell me wether it is wright wya or
not........

in servlt i have put "example application" as main class,descritor,input and
out put in webroot,then i have deployed it in tomact.i got the above error.

i hope u will get it what iam asking for.........
i have 2 problems here 1)is regarding configarationparameter.2) how to write
in web application


vijay



On 9/17/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 9/17/07, vijay vijay <vi...@gmail.com> wrote:
> > HI adam,
> >                             when i put this example as web application,
> i
> > have written this as servlet here i am gettig an error like this.i have
> > tried to solve , i have searched in google i have not found relative one
> >
> > """
> >
> > java.lang.NoSuchMethodError:
> > javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
> >  <snip/>
> > can u tell me exctly where   i went wrong.........
> >
>
> I have not seen this before, but I Googled it and did find some hits
> about bugs in Xalan (for example:
>
> http://mail-archives.apache.org/mod_mbox/lenya-dev/200508.mbox/%3C1124384524.14833.10.camel@localhost.localdomain%3E
> ).
>
> You might try using a newer Java release or get a newer version of
> xalan.jar from xml.apache.org.  These XML parser version issues are
> always a pain!
>
>
> > and i would like to know
> > ur timings so that i can stay in office
>
> I can't guarantee having time at any particular hour to reply to your
> questions.  Look at the times of the emails that I've sent in the past
> and that should give you a rough idea.
>
> -Adam
>

Re: UIMA Source Code

Posted by Adam Lally <al...@alum.rpi.edu>.
On 9/17/07, vijay vijay <vi...@gmail.com> wrote:
> HI adam,
>                             when i put this example as web application, i
> have written this as servlet here i am gettig an error like this.i have
> tried to solve , i have searched in google i have not found relative one
>
> """
>
> java.lang.NoSuchMethodError:
> javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
>  <snip/>
> can u tell me exctly where   i went wrong.........
>

I have not seen this before, but I Googled it and did find some hits
about bugs in Xalan (for example:
http://mail-archives.apache.org/mod_mbox/lenya-dev/200508.mbox/%3C1124384524.14833.10.camel@localhost.localdomain%3E).

You might try using a newer Java release or get a newer version of
xalan.jar from xml.apache.org.  These XML parser version issues are
always a pain!


> and i would like to know
> ur timings so that i can stay in office

I can't guarantee having time at any particular hour to reply to your
questions.  Look at the times of the emails that I've sent in the past
and that should give you a rough idea.

-Adam

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
HI adam,
                            when i put this example as web application, i
have written this as servlet here i am gettig an error like this.i have
tried to solve , i have searched in google i have not found relative one

"""

java.lang.NoSuchMethodError:
javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
	org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1092)
	org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1060)
	org.apache.xalan.transformer.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:183)
	com.ibm.uima.reference_impl.util.SaxDeserializer_impl.<init>(Unknown Source)
	com.ibm.uima.reference_impl.util.XMLParser_impl.parse(Unknown Source)
	com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifier(Unknown
Source)
	com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifier(Unknown
Source)
	com.iton.uima.Test.doGet(Test.java:67)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)



can u tell me exctly where   i went wrong.........and i would like to know
ur timings so that i can stay in office

thanku
vijay


On 9/17/07, vijay vijay <vi...@gmail.com> wrote:
>
> Hi adam,
>                i have fallowed matthew,got the out put but not the one i
> wanted it. here i didget those strings passed as configaration
> parameters.so what might be the problem
>
>       and i have taken one step futher by  putting this class ias
> webapplication.can i do like that.my first goal is some what like this. is
> it going to be working?
>
> vijay
>
>
>  On 9/15/07, Adam Lally <al...@alum.rpi.edu> wrote:
> >
> > On 9/14/07, vijay vijay <vi...@gmail.com> wrote:
> > >
> > > System.*err*.println("Usage: java
> > com.ibm.uima.example.ExampleApplication "+
> > > "<AnalysisEngine.xml> +
> > <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> > > <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> > > i am getting an error like this
> > >
> > > "Syntax error, insert ")" to complete MethodInvocation".
> > > i have tried not my best.
> > >
> >
> > As Matthew said, these are basic Java questions.  If you need help
> > understanding what System.err.println does and how to fix Java syntax
> > errors, I suggest you take a step back from UIMA and spend some time
> > going through the Java tutorial:
> > http://java.sun.com/docs/books/tutorial/.  Or buy a book on how to
> > program in Java.
> >
> > -Adam
> >
>
>

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
HI matthew,
                            when i put this example as web application, i
have written this as servlet here i am gettig an error like this.i have
tried to solve , i have searched in google i have not found relative one

"""

java.lang.NoSuchMethodError:
javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
	org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1092)
	org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1060)
	org.apache.xalan.transformer.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:183)
	com.ibm.uima.reference_impl.util.SaxDeserializer_impl.<init>(Unknown Source)
	com.ibm.uima.reference_impl.util.XMLParser_impl.parse(Unknown Source)
	com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifier(Unknown
Source)
	com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifier(Unknown
Source)
	com.iton.uima.Test.doGet(Test.java:67)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)



can u tell me exctly where   i went wrong.........

thanku
vijay



On 9/17/07, vijay vijay <vi...@gmail.com> wrote:
>
> thank u matthew,
>
>                              as u said i have given 3 paths in
> argument and it is working.But the problem is i am getting the annotation
> for "michael,vijay,uima" which are passed as configartion parameters.
> i got result "who" which is passed as class for the AnalysisDescription.soi have included that annoattion in this example.
>
>                                Michael also gave me reply said that i have
> to add reconfigure method also.
> and i also done one samll thing which is i have deplyoing it as web
> application.i have put this class in src  folder .i have douat here can i
> put xml's(analysis engine and typeSystem descriptors in web.xml?
>
> vijay
>
>
> On 9/14/07, Matthew Campbell <mc...@syrres.com> wrote:
> >
> > Vijay:
> >
> >    "System.err.println()" only displays that message in the console
> > telling you how to run the java application.  Usage statements are
> > common in Java console programs, since they tell you how to use a new
> > program and what arguments should be passed to it when you don't invoke
> > it correctly.  It looks like you have the right *idea*, but you don't
> > put those directories into the System.err call (that would just print
> > them out on the console with the message) - you pass them on the command
> > line.  In Eclipse, you can pass them by clicking Run >> Open Run Dialog,
> >
> > making sure the ExampleApplication is selected as your main class, and
> > adding the three paths (the analysis engine descriptor, input directory,
> > and output directory) to the Program Arguments box in the Arguments
> > tab.  Make sure to surround each argument/directory with double-quotes
> > if they have spaces in them (it doesn't appear so in your example code
> > here).
> >    As for the error about missing ")", you've sort of butchered the
> > quotation marks in that System.err call.  Eclipse should be syntax
> > highlighting that for you, so you should be able to work out when the
> > string is closed with the correct quotation mark and when it isn't.  I
> > would just change it back to the way it was though and save yourself
> > some time.
> >    These aren't really UIMA errors, though, but fundamental Java ones,
> > so I don't know if this is really the place to discuss them (Sun's Java
> > forums may be better suited to some of the general Java questions).
> > Walk through the code of the ExampleApplication starting from the main()
> > method.  If there are things you don't understand or are giving you
> > errors when you run it, do a quick google search to see if other folks
> > have had the same problem.  Make a decent effort to debug on your own,
> > and then come back if you're up against a wall.
> >
> >    Sidestepping to your question about regular expressions, their used
> > to match patterns in strings, and I'm sure you'll find them very useful
> > both inside and outside of UIMA.  I find the website
> > http://www.regular-expressions.info/ very helpful when reading up on the
> > subject, but again, Google is your friend.
> >
> >
> > -Matt
> >
> > vijay vijay wrote:
> > > Hi adam,
> > >
> > >
> > >               at last i found the java class,so i just added that
> > class to
> > > my project wrote as a java
> > >  class,there i am getting an lke this
> > >
> > >  Usage: java com.ibm.uima.example.ExampleApplication <TAE descriptor
> > or TEAR
> > > file name> <input dir> <output dir>""
> > >
> > > actually i have tried this when i am doing my first example i got the
> > same
> > > error .now i have given here like this
> > >
> > >
> > > System.*err*.println("Usage: java
> > com.ibm.uima.example.ExampleApplication "+
> > > "<AnalysisEngine.xml> +
> > <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> > > <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> > > i am getting an error like this
> > >
> > > "Syntax error, insert ")" to complete MethodInvocation".
> > > i have tried not my best.
> > >
> > > AND my aim also develop full fleged compnent to search for
> > unstructured
> > > data,my people want to use this as search tool in their project.thisone is
> > > ultimate goal.
> > >
> > > i don't how far i am going to suceed in this but i want give my best
> > with ur
> > > support.......
> > >
> > > vijay
> > >
> > >
> > > On 9/13/07, Adam Lally < alally@alum.rpi.edu> wrote:
> > >
> > >
> > >
> > >> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
> > >>
> > >>> Hi  Adam Lally ,
> > >>>
> > >>>                            as per ur code below i have tried
> > >>>
> > >>>
> > >>> analysisEngine.setConfigParameterValue("StringsToAnnotate",
> > >>>  new String[] {"Michael","UIMA","Vijay",....}); but it is
> > >>> giving anerror like analysisEngine cannot be resolved. i am attching
> > the
> > >>> class what i wrote.
> > >>>
> > >>>
> > >> Vijay,
> > >>
> > >> The setConfigParameterValue call does not go in the annotator.  It
> > >> goes in your main program.  The idea is that the main program sets
> > the
> > >> configuration parameter values before calling the annotator.  It
> > >> wouldn't make any sense for the annotator code to set its own
> > >> configuration parameter values, then it might as well just hardcode
> > >> the values it was searching for!
> > >>
> > >> Did you look at ExampleApplication.java yet?  You asked how to write
> > a
> > >> Main program, and you were on the right track with that.  In
> > >> ExampleApplication.java's main method you have this line of code:
> > >>
> > >>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine
> > (specifier);
> > >>
> > >> And you would put after it:
> > >>
> > >> ae.setConfigParameterValue("StringsToAnnotate", new String[]
> > >> {"Michael","UIMA","Vijay"});
> > >>
> > >> Regards,
> > >> -Adam
> > >>
> > >>
> > >
> > >
> >
>
>

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi matthew :::

                        I am not goin to stop with a string,i wnated to  for
string first,but my ultimate goal is ""i need to add this
search (text,pdf,xml,jpg) for on going projec"".

                    sure i will do study on those regular expression and i
want to know how they are usefull?

vijay


On 9/14/07, Matthew Campbell <mc...@syrres.com> wrote:
>
> Vijay:
>
>    I'd suggest looking at the Java API documentation for the Pattern
> class, as well as reading up on regular expressions in general, if
> you're not familiar with them.  A quick google search will find you
> plenty of information and examples.  I was only suggesting that there
> are other (simpler) ways to search strings in real-time and that you
> don't need UIMA for that.  As for UIMA itself, the code you posted today
> looks like it's going in the right direction.
>
>
> -Matt
>
> vijay vijay wrote:
> > Hi Matt
> >             """" loading the page text into a stringbuffer and using
> > regular expressions if all you're doing is straight text searching.""""
> >
> >    could u explin how to do  this exactly.............
> >
> > vijay
> >
> >
> > On 9/12/07, Matthew Campbell <mc...@syrres.com> wrote:
> >
> >> Vijay:
> >>
> >>    I'm not a UIMA expert (or a J2EE one for that matter), but the goal
> >> you're described of getting UIMA to support a JSP interface doesn't
> seem
> >> like it would be much different than developing any other java
> >> application.  I would suggest working through the documentation Michael
> >> linked to at least up to where they go through the first tutorial
> >> example (which is included in the UIMA source bundle you downloaded or
> >> got from subversion).  Then try and get that example working in the
> J2EE
> >> container.
> >>    From my little experience with JSP, I'd imagine you would implement
> >> the doGet() or whatever to read in the analysis engine descriptor,
> >> create the JCAS, run it through the text you want to display on the
> >> page, then walk through the annotations and replace each string with
> >> whenever your processed string should look like.  Finally, you'd render
> >> the processed text to the page.  To actually get the value of the
> >> request into your AE, you can set configuration parameters
> >> programmatically as seem in the documentation at:
> >>
> >>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.setting_configuration_parameters
> >>
> >> I would make your analysis engine have a configuration parameter called
> >> "searchTerm" or something, then have the JSP set the value for that
> >> configuration parameter to the value of the request before calling the
> >> AE's process() method.
> >>    Honestly, I don't know the specifics of your problem or what you're
> >> trying to accomplish in the long run, so I don't know what UIMA is
> >> buying you functionality-wise in this particular case (but then, I'm
> >> relatively new to UIMA too).  It seems like you could just skip the
> >> whole UIMA step, loading the page text into a stringbuffer and using
> >> regular expressions if all you're doing is straight text searching.
> >>    I don't know if this answers your question, and I'm afraid I can't
> >> help much more than this.  All I can say is the documentation and
> >> examples found therein are very helpful, so you really should do
> >> yourself a favor and camp out with the Apache documentation for a while
> >> to get an idea of what can be done.  Good luck :-D.
> >>
> >>
> >> -Matt
> >>
> >> vijay vijay wrote:
> >>
> >>> plz michale
> >>> give me response
> >>>
> >>>
> >>>
> >>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> >>>
> >>>
> >>>> thank u for ur kind response,
> >>>>
> >>>>                      let me tell u exactley where i am
> >>>>
> >>>>                   i have downloded  plugins for eclipse and i have
> >>>>
> >> wriiten
> >>
> >>>> code for analysis engine and java class for annotation where it reads
> >>>>
> >> two
> >>
> >>>> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done
> it
> >>>> sucessfully. i am able get the annotation in document analyzer.
> >>>>
> >>>>                     here i thought insted of hardcoding or sending it
> >>>>
> >> as
> >>
> >>>> parameters Can we pass annotations dynamically? i have put this
> >>>>
> >> question
> >>
> >>>> acroos forums no replies for it.
> >>>>
> >>>>                    how do u  write main class? in uima...........
> >>>>
> >>>>                  i have deployed examples up to collection process
> >>>>
> >> engine.
> >>
> >>>>            I will tell u my aim also i want to send Michale as client
> >>>> request from a jsp page it should be able to get all occurences of
> >>>> michale.how do u achive this?
> >>>>
> >>>>         thats what i am aiming for,if u suggest me  how to proceed i
> >>>>
> >> will
> >>
> >>>> be thank full to u ,i thinking that u are like guide to me.no one is
> >>>>
> >> there
> >>
> >>>> to help me.i have searched across web so many pdfs but i storgley
> >>>>
> >> belive
> >>
> >>>> that i need some help form some one and that is u ,every thing is in
> ur
> >>>> hands to say yes or no is up to u boss .
> >>>>
> >>>>     i am happy for ur response.once again thank u micahle.
> >>>> bye
> >>>>  vijay
> >>>>
> >>>>
> >>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>>
> >>>>
> >>>>> Start reading the Apache UIMA documentation if you want to work with
> >>>>> Apache UIMA. I think
> >>>>> UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
> >>>>>
> >>>>> The Apache UIMA documentation is available at:
> >>>>> http://incubator.apache.org/uima/documentation.html
> >>>>>
> >>>>> You want to find some entities in text documents? What kind of
> >>>>>
> >> entities?
> >>
> >>>>> Look at the UIMA sandbox maybe there
> >>>>> are some components that can help you.
> >>>>>
> >>>>> -- Michael
> >>>>>
> >>>>> vijay vijay wrote:
> >>>>>
> >>>>>
> >>>>>> Hi Michael
> >>>>>>                      PLz something personal........spend ur
> valuable
> >>>>>>
> >>>>>>
> >>>>> time
> >>>>>
> >>>>>
> >>>>>> for me.....
> >>>>>>                     i have staterd study on this Uima 3 weeks back
> >>>>>>
> >>>>>>
> >>>>> till now
> >>>>>
> >>>>>
> >>>>>> i have not gained anything from it.i have loged many forums where i
> >>>>>>
> >>>>>>
> >>>>> have not
> >>>>>
> >>>>>
> >>>>>> any response.i think i might disturbing u with my stupid mails.
> >>>>>>
> >>>>>>                  i need some guidence for u,i would like to how to
> >>>>>>
> >>>>>>
> >>>>> approch
> >>>>>
> >>>>>
> >>>>>> to my problem?
> >>>>>> i want to search for text in  my local files using this uima
> concept.
> >>>>>>
> >>>>>>
> >>>>> till
> >>>>>
> >>>>>
> >>>>>> now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
> >>>>>>
> >>>>>>                    once again sorry to ask u like this.if some one
> >>>>>>
> >>>>>>
> >>>>> gives me
> >>>>>
> >>>>>
> >>>>>> a fair idea abt this hoe to proceed i will be the most happeist.
> >>>>>>
> >>>>>> vijay
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi Vijay,
> >>>>>>>
> >>>>>>> this has nothing to do with UIMA 2.2 Class Loader so please do not
> >>>>>>>
> >>>>>>>
> >>>>> use
> >>>>>
> >>>>>
> >>>>>>> this topic for positing!!
> >>>>>>>
> >>>>>>> http://incubator.apache.org/uima/svn.html
> >>>>>>>
> >>>>>>> -- Michael
> >>>>>>>
> >>>>>>> vijay vijay wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi guys,
> >>>>>>>>
> >>>>>>>>                     where can i get source code for this
> >>>>>>>>
> >> Uima.mybasic
> >>
> >>>>>>>>
> >>>>>>> aim
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> is to search for text in local folders.can any one suugest
> >>>>>>>> me.plzzzzzzzz......
> >>>>>>>>
> >>>>>>>> vijay
> >>>>>>>>
> >>>>>>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Hi Michael,
> >>>>>>>>>                   the link which u have provided is very
> >>>>>>>>>
> >>>>>>>>>
> >>>>> inresting.socan
> >>>>>
> >>>>>
> >>>>>>>>> u send me links which are usefull to the a fresher to this topic
> >>>>>>>>>
> >>>>>>>>> plz spare ur valuable time for few mins waiting for ue reply.
> >>>>>>>>> vijay
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On 8/30/07, Michael Baessler < mba@michael-baessler.de> wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Are your primitive engines available as PEAR files? That is
> >>>>>>>>>>
> >> needed
> >>
> >>>>>>>>>>
> >>>>>>> since
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>>> only if you have them as PEAR files
> >>>>>>>>>> you can use the PEAR descriptor.
> >>>>>>>>>>
> >>>>>>>>>> After you have installed the PEAR files a PEAR descriptor is
> >>>>>>>>>> automatically generated (located in the install directory).
> This
> >>>>>>>>>> descriptor have to
> >>>>>>>>>> be used in the aggregate to refer to the primitive AEs.
> >>>>>>>>>>
> >>>>>>>>>> -- Michael
> >>>>>>>>>>
> >>>>>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> Thanks Marshall for the information and for asking :)
> >>>>>>>>>>>
> >>>>>>>>>>> What I have tried is that I have a description of an aggregate
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>> analysis
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> engine which has 4 primitive analysis engine defined. Those
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>> primitive
> >>>>>
> >>>>>
> >>>>>>>>>> AE
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> descriptions are all fully defined (no imports) under the
> >>>>>>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do
> >>>>>>>>>>>
> >> this
> >>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>> because
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> those primitive AE descriptions are generated on the fly. For
> >>>>>>>>>>>
> >> one
> >>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>> thing,
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> each primitive AE has its own PEAR-compliant directory. In
> this
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>> case,
> >>>>>
> >>>>>
> >>>>>>>>>> I
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> could not figure out how to tell UIMA the location those
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>> directories.
> >>>>>
> >>>>>
> >>>>>>>>>>> Excerpt from section 5.8 in the UIMA References page:
> >>>>>>>>>>> "As of version 2.2, the framework supports component
> descriptors
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>> which
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>>> are
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> PEAR descriptors. These descriptors define components plus
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>> include
> >>>>>
> >>>>>
> >>>>>>>>>>> information on the class path needed to run them."
> >>>>>>>>>>> Question: To get the individual class loader for each
> primitive
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>> AE
> >>>>>
> >>>>>
> >>>>>>>>>> defined
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> in an aggregate AE, do we have to specify/map the PEAR
> >>>>>>>>>>>
> >> descriptor
> >>
> >>>>>>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If
> so,
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>> where
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>>> and
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> how to do it?
> >>>>>>>>>>>
> >>>>>>>>>>> Any comments/recommendations would be appreciated.
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks,
> >>>>>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>>>>>>>>> descriptors, which include the class path information.
> >>>>>>>>>>>>
> >>>>>>>>>>>> This should allow you to run a pipeline where each annotator
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>> could
> >>>>>
> >>>>>
> >>>>>>>>>> have
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>> different versions of classes.
> >>>>>>>>>>>> See
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >>>>>>>>>>>> Is that what you're trying to do?
> >>>>>>>>>>>>
> >>>>>>>>>>>> -Marshall
> >>>>>>>>>>>>
> >>>>>>>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> Hi Guys,
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> I'd like to ask a couple of questions regarding the
> >>>>>>>>>>>>>
> >> classloader
> >>
> >>>>> in
> >>>>>
> >>>>>
> >>>>>>>>>> UIMA
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>> 2.2.
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>> different
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>> class
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> loaders for each aggregated primitive analysis engines, so
> >>>>>>>>>>>>>
> >> that
> >>
> >>>>> the
> >>>>>
> >>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>> classes
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> won't interfere each others?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> If there is so, could you please shed some light how to do
> it?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>> I've
> >>>>>
> >>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>> looked
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> into the source code and documentation but no luck :(
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Many Thanks,
> >>>>>>>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>
> >
> >
>

Re: UIMA Source Code

Posted by Matthew Campbell <mc...@syrres.com>.
Vijay:

    I'd suggest looking at the Java API documentation for the Pattern 
class, as well as reading up on regular expressions in general, if 
you're not familiar with them.  A quick google search will find you 
plenty of information and examples.  I was only suggesting that there 
are other (simpler) ways to search strings in real-time and that you 
don't need UIMA for that.  As for UIMA itself, the code you posted today 
looks like it's going in the right direction.


-Matt

vijay vijay wrote:
> Hi Matt
>             """" loading the page text into a stringbuffer and using
> regular expressions if all you're doing is straight text searching.""""
>
>    could u explin how to do  this exactly.............
>
> vijay
>
>
> On 9/12/07, Matthew Campbell <mc...@syrres.com> wrote:
>   
>> Vijay:
>>
>>    I'm not a UIMA expert (or a J2EE one for that matter), but the goal
>> you're described of getting UIMA to support a JSP interface doesn't seem
>> like it would be much different than developing any other java
>> application.  I would suggest working through the documentation Michael
>> linked to at least up to where they go through the first tutorial
>> example (which is included in the UIMA source bundle you downloaded or
>> got from subversion).  Then try and get that example working in the J2EE
>> container.
>>    From my little experience with JSP, I'd imagine you would implement
>> the doGet() or whatever to read in the analysis engine descriptor,
>> create the JCAS, run it through the text you want to display on the
>> page, then walk through the annotations and replace each string with
>> whenever your processed string should look like.  Finally, you'd render
>> the processed text to the page.  To actually get the value of the
>> request into your AE, you can set configuration parameters
>> programmatically as seem in the documentation at:
>>
>>
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.setting_configuration_parameters
>>
>> I would make your analysis engine have a configuration parameter called
>> "searchTerm" or something, then have the JSP set the value for that
>> configuration parameter to the value of the request before calling the
>> AE's process() method.
>>    Honestly, I don't know the specifics of your problem or what you're
>> trying to accomplish in the long run, so I don't know what UIMA is
>> buying you functionality-wise in this particular case (but then, I'm
>> relatively new to UIMA too).  It seems like you could just skip the
>> whole UIMA step, loading the page text into a stringbuffer and using
>> regular expressions if all you're doing is straight text searching.
>>    I don't know if this answers your question, and I'm afraid I can't
>> help much more than this.  All I can say is the documentation and
>> examples found therein are very helpful, so you really should do
>> yourself a favor and camp out with the Apache documentation for a while
>> to get an idea of what can be done.  Good luck :-D.
>>
>>
>> -Matt
>>
>> vijay vijay wrote:
>>     
>>> plz michale
>>> give me response
>>>
>>>
>>>
>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>>>
>>>       
>>>> thank u for ur kind response,
>>>>
>>>>                      let me tell u exactley where i am
>>>>
>>>>                   i have downloded  plugins for eclipse and i have
>>>>         
>> wriiten
>>     
>>>> code for analysis engine and java class for annotation where it reads
>>>>         
>> two
>>     
>>>> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
>>>> sucessfully. i am able get the annotation in document analyzer.
>>>>
>>>>                     here i thought insted of hardcoding or sending it
>>>>         
>> as
>>     
>>>> parameters Can we pass annotations dynamically? i have put this
>>>>         
>> question
>>     
>>>> acroos forums no replies for it.
>>>>
>>>>                    how do u  write main class? in uima...........
>>>>
>>>>                  i have deployed examples up to collection process
>>>>         
>> engine.
>>     
>>>>            I will tell u my aim also i want to send Michale as client
>>>> request from a jsp page it should be able to get all occurences of
>>>> michale.how do u achive this?
>>>>
>>>>         thats what i am aiming for,if u suggest me  how to proceed i
>>>>         
>> will
>>     
>>>> be thank full to u ,i thinking that u are like guide to me.no one is
>>>>         
>> there
>>     
>>>> to help me.i have searched across web so many pdfs but i storgley
>>>>         
>> belive
>>     
>>>> that i need some help form some one and that is u ,every thing is in ur
>>>> hands to say yes or no is up to u boss .
>>>>
>>>>     i am happy for ur response.once again thank u micahle.
>>>> bye
>>>>  vijay
>>>>
>>>>
>>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>>
>>>>         
>>>>> Start reading the Apache UIMA documentation if you want to work with
>>>>> Apache UIMA. I think
>>>>> UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
>>>>>
>>>>> The Apache UIMA documentation is available at:
>>>>> http://incubator.apache.org/uima/documentation.html
>>>>>
>>>>> You want to find some entities in text documents? What kind of
>>>>>           
>> entities?
>>     
>>>>> Look at the UIMA sandbox maybe there
>>>>> are some components that can help you.
>>>>>
>>>>> -- Michael
>>>>>
>>>>> vijay vijay wrote:
>>>>>
>>>>>           
>>>>>> Hi Michael
>>>>>>                      PLz something personal........spend ur valuable
>>>>>>
>>>>>>             
>>>>> time
>>>>>
>>>>>           
>>>>>> for me.....
>>>>>>                     i have staterd study on this Uima 3 weeks back
>>>>>>
>>>>>>             
>>>>> till now
>>>>>
>>>>>           
>>>>>> i have not gained anything from it.i have loged many forums where i
>>>>>>
>>>>>>             
>>>>> have not
>>>>>
>>>>>           
>>>>>> any response.i think i might disturbing u with my stupid mails.
>>>>>>
>>>>>>                  i need some guidence for u,i would like to how to
>>>>>>
>>>>>>             
>>>>> approch
>>>>>
>>>>>           
>>>>>> to my problem?
>>>>>> i want to search for text in  my local files using this uima concept.
>>>>>>
>>>>>>             
>>>>> till
>>>>>
>>>>>           
>>>>>> now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
>>>>>>
>>>>>>                    once again sorry to ask u like this.if some one
>>>>>>
>>>>>>             
>>>>> gives me
>>>>>
>>>>>           
>>>>>> a fair idea abt this hoe to proceed i will be the most happeist.
>>>>>>
>>>>>> vijay
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi Vijay,
>>>>>>>
>>>>>>> this has nothing to do with UIMA 2.2 Class Loader so please do not
>>>>>>>
>>>>>>>               
>>>>> use
>>>>>
>>>>>           
>>>>>>> this topic for positing!!
>>>>>>>
>>>>>>> http://incubator.apache.org/uima/svn.html
>>>>>>>
>>>>>>> -- Michael
>>>>>>>
>>>>>>> vijay vijay wrote:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> Hi guys,
>>>>>>>>
>>>>>>>>                     where can i get source code for this
>>>>>>>>                 
>> Uima.mybasic
>>     
>>>>>>>>                 
>>>>>>> aim
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> is to search for text in local folders.can any one suugest
>>>>>>>> me.plzzzzzzzz......
>>>>>>>>
>>>>>>>> vijay
>>>>>>>>
>>>>>>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Hi Michael,
>>>>>>>>>                   the link which u have provided is very
>>>>>>>>>
>>>>>>>>>                   
>>>>> inresting.socan
>>>>>
>>>>>           
>>>>>>>>> u send me links which are usefull to the a fresher to this topic
>>>>>>>>>
>>>>>>>>> plz spare ur valuable time for few mins waiting for ue reply.
>>>>>>>>> vijay
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 8/30/07, Michael Baessler < mba@michael-baessler.de> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> Are your primitive engines available as PEAR files? That is
>>>>>>>>>>                     
>> needed
>>     
>>>>>>>>>>                     
>>>>>>> since
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>>>> only if you have them as PEAR files
>>>>>>>>>> you can use the PEAR descriptor.
>>>>>>>>>>
>>>>>>>>>> After you have installed the PEAR files a PEAR descriptor is
>>>>>>>>>> automatically generated (located in the install directory). This
>>>>>>>>>> descriptor have to
>>>>>>>>>> be used in the aggregate to refer to the primitive AEs.
>>>>>>>>>>
>>>>>>>>>> -- Michael
>>>>>>>>>>
>>>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> Thanks Marshall for the information and for asking :)
>>>>>>>>>>>
>>>>>>>>>>> What I have tried is that I have a description of an aggregate
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>> analysis
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> engine which has 4 primitive analysis engine defined. Those
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>> primitive
>>>>>
>>>>>           
>>>>>>>>>> AE
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> descriptions are all fully defined (no imports) under the
>>>>>>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do
>>>>>>>>>>>                       
>> this
>>     
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>> because
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> those primitive AE descriptions are generated on the fly. For
>>>>>>>>>>>                       
>> one
>>     
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>> thing,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> each primitive AE has its own PEAR-compliant directory. In this
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>> case,
>>>>>
>>>>>           
>>>>>>>>>> I
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> could not figure out how to tell UIMA the location those
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>> directories.
>>>>>
>>>>>           
>>>>>>>>>>> Excerpt from section 5.8 in the UIMA References page:
>>>>>>>>>>> "As of version 2.2, the framework supports component descriptors
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>> which
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>>>> are
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> PEAR descriptors. These descriptors define components plus
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>> include
>>>>>
>>>>>           
>>>>>>>>>>> information on the class path needed to run them."
>>>>>>>>>>> Question: To get the individual class loader for each primitive
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>> AE
>>>>>
>>>>>           
>>>>>>>>>> defined
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> in an aggregate AE, do we have to specify/map the PEAR
>>>>>>>>>>>                       
>> descriptor
>>     
>>>>>>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>> where
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>>>> and
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> how to do it?
>>>>>>>>>>>
>>>>>>>>>>> Any comments/recommendations would be appreciated.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>>>>>>>>> descriptors, which include the class path information.
>>>>>>>>>>>>
>>>>>>>>>>>> This should allow you to run a pipeline where each annotator
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>> could
>>>>>
>>>>>           
>>>>>>>>>> have
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>>> different versions of classes.
>>>>>>>>>>>> See
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>     
>>>>>>>>>>>> Is that what you're trying to do?
>>>>>>>>>>>>
>>>>>>>>>>>> -Marshall
>>>>>>>>>>>>
>>>>>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>>>> Hi Guys,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'd like to ask a couple of questions regarding the
>>>>>>>>>>>>>                           
>> classloader
>>     
>>>>> in
>>>>>
>>>>>           
>>>>>>>>>> UIMA
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>>> 2.2.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>>>>>>> different
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>>> class
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>>>> loaders for each aggregated primitive analysis engines, so
>>>>>>>>>>>>>                           
>> that
>>     
>>>>> the
>>>>>
>>>>>           
>>>>>>>>>>>>>                           
>>>>>>>>>>>> classes
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>>>> won't interfere each others?
>>>>>>>>>>>>>
>>>>>>>>>>>>> If there is so, could you please shed some light how to do it?
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>> I've
>>>>>
>>>>>           
>>>>>>>>>>>>>                           
>>>>>>>>>>>> looked
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>>>> into the source code and documentation but no luck :(
>>>>>>>>>>>>>
>>>>>>>>>>>>> Many Thanks,
>>>>>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>       
>
>   

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi Matt
            """" loading the page text into a stringbuffer and using
regular expressions if all you're doing is straight text searching.""""

   could u explin how to do  this exactly.............

vijay


On 9/12/07, Matthew Campbell <mc...@syrres.com> wrote:
>
> Vijay:
>
>    I'm not a UIMA expert (or a J2EE one for that matter), but the goal
> you're described of getting UIMA to support a JSP interface doesn't seem
> like it would be much different than developing any other java
> application.  I would suggest working through the documentation Michael
> linked to at least up to where they go through the first tutorial
> example (which is included in the UIMA source bundle you downloaded or
> got from subversion).  Then try and get that example working in the J2EE
> container.
>    From my little experience with JSP, I'd imagine you would implement
> the doGet() or whatever to read in the analysis engine descriptor,
> create the JCAS, run it through the text you want to display on the
> page, then walk through the annotations and replace each string with
> whenever your processed string should look like.  Finally, you'd render
> the processed text to the page.  To actually get the value of the
> request into your AE, you can set configuration parameters
> programmatically as seem in the documentation at:
>
>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.setting_configuration_parameters
>
> I would make your analysis engine have a configuration parameter called
> "searchTerm" or something, then have the JSP set the value for that
> configuration parameter to the value of the request before calling the
> AE's process() method.
>    Honestly, I don't know the specifics of your problem or what you're
> trying to accomplish in the long run, so I don't know what UIMA is
> buying you functionality-wise in this particular case (but then, I'm
> relatively new to UIMA too).  It seems like you could just skip the
> whole UIMA step, loading the page text into a stringbuffer and using
> regular expressions if all you're doing is straight text searching.
>    I don't know if this answers your question, and I'm afraid I can't
> help much more than this.  All I can say is the documentation and
> examples found therein are very helpful, so you really should do
> yourself a favor and camp out with the Apache documentation for a while
> to get an idea of what can be done.  Good luck :-D.
>
>
> -Matt
>
> vijay vijay wrote:
> > plz michale
> > give me response
> >
> >
> >
> > On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> >
> >> thank u for ur kind response,
> >>
> >>                      let me tell u exactley where i am
> >>
> >>                   i have downloded  plugins for eclipse and i have
> wriiten
> >> code for analysis engine and java class for annotation where it reads
> two
> >> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
> >> sucessfully. i am able get the annotation in document analyzer.
> >>
> >>                     here i thought insted of hardcoding or sending it
> as
> >> parameters Can we pass annotations dynamically? i have put this
> question
> >> acroos forums no replies for it.
> >>
> >>                    how do u  write main class? in uima...........
> >>
> >>                  i have deployed examples up to collection process
> engine.
> >>
> >>            I will tell u my aim also i want to send Michale as client
> >> request from a jsp page it should be able to get all occurences of
> >> michale.how do u achive this?
> >>
> >>         thats what i am aiming for,if u suggest me  how to proceed i
> will
> >> be thank full to u ,i thinking that u are like guide to me.no one is
> there
> >> to help me.i have searched across web so many pdfs but i storgley
> belive
> >> that i need some help form some one and that is u ,every thing is in ur
> >> hands to say yes or no is up to u boss .
> >>
> >>     i am happy for ur response.once again thank u micahle.
> >> bye
> >>  vijay
> >>
> >>
> >> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>
> >>> Start reading the Apache UIMA documentation if you want to work with
> >>> Apache UIMA. I think
> >>> UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
> >>>
> >>> The Apache UIMA documentation is available at:
> >>> http://incubator.apache.org/uima/documentation.html
> >>>
> >>> You want to find some entities in text documents? What kind of
> entities?
> >>>
> >>> Look at the UIMA sandbox maybe there
> >>> are some components that can help you.
> >>>
> >>> -- Michael
> >>>
> >>> vijay vijay wrote:
> >>>
> >>>> Hi Michael
> >>>>                      PLz something personal........spend ur valuable
> >>>>
> >>> time
> >>>
> >>>> for me.....
> >>>>                     i have staterd study on this Uima 3 weeks back
> >>>>
> >>> till now
> >>>
> >>>> i have not gained anything from it.i have loged many forums where i
> >>>>
> >>> have not
> >>>
> >>>> any response.i think i might disturbing u with my stupid mails.
> >>>>
> >>>>                  i need some guidence for u,i would like to how to
> >>>>
> >>> approch
> >>>
> >>>> to my problem?
> >>>> i want to search for text in  my local files using this uima concept.
> >>>>
> >>> till
> >>>
> >>>> now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
> >>>>
> >>>>                    once again sorry to ask u like this.if some one
> >>>>
> >>> gives me
> >>>
> >>>> a fair idea abt this hoe to proceed i will be the most happeist.
> >>>>
> >>>> vijay
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>>
> >>>>
> >>>>> Hi Vijay,
> >>>>>
> >>>>> this has nothing to do with UIMA 2.2 Class Loader so please do not
> >>>>>
> >>> use
> >>>
> >>>>> this topic for positing!!
> >>>>>
> >>>>> http://incubator.apache.org/uima/svn.html
> >>>>>
> >>>>> -- Michael
> >>>>>
> >>>>> vijay vijay wrote:
> >>>>>
> >>>>>
> >>>>>> Hi guys,
> >>>>>>
> >>>>>>                     where can i get source code for this
> Uima.mybasic
> >>>>>>
> >>>>>>
> >>>>> aim
> >>>>>
> >>>>>
> >>>>>> is to search for text in local folders.can any one suugest
> >>>>>> me.plzzzzzzzz......
> >>>>>>
> >>>>>> vijay
> >>>>>>
> >>>>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi Michael,
> >>>>>>>                   the link which u have provided is very
> >>>>>>>
> >>> inresting.socan
> >>>
> >>>>>>> u send me links which are usefull to the a fresher to this topic
> >>>>>>>
> >>>>>>> plz spare ur valuable time for few mins waiting for ue reply.
> >>>>>>> vijay
> >>>>>>>
> >>>>>>>
> >>>>>>> On 8/30/07, Michael Baessler < mba@michael-baessler.de> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Are your primitive engines available as PEAR files? That is
> needed
> >>>>>>>>
> >>>>>>>>
> >>>>> since
> >>>>>
> >>>>>
> >>>>>>>> only if you have them as PEAR files
> >>>>>>>> you can use the PEAR descriptor.
> >>>>>>>>
> >>>>>>>> After you have installed the PEAR files a PEAR descriptor is
> >>>>>>>> automatically generated (located in the install directory). This
> >>>>>>>> descriptor have to
> >>>>>>>> be used in the aggregate to refer to the primitive AEs.
> >>>>>>>>
> >>>>>>>> -- Michael
> >>>>>>>>
> >>>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Thanks Marshall for the information and for asking :)
> >>>>>>>>>
> >>>>>>>>> What I have tried is that I have a description of an aggregate
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> analysis
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> engine which has 4 primitive analysis engine defined. Those
> >>>>>>>>>
> >>> primitive
> >>>
> >>>>>>>>>
> >>>>>>>> AE
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> descriptions are all fully defined (no imports) under the
> >>>>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do
> this
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> because
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> those primitive AE descriptions are generated on the fly. For
> one
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> thing,
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> each primitive AE has its own PEAR-compliant directory. In this
> >>>>>>>>>
> >>> case,
> >>>
> >>>>>>>>>
> >>>>>>>> I
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> could not figure out how to tell UIMA the location those
> >>>>>>>>>
> >>> directories.
> >>>
> >>>>>>>>> Excerpt from section 5.8 in the UIMA References page:
> >>>>>>>>> "As of version 2.2, the framework supports component descriptors
> >>>>>>>>>
> >>>>>>>>>
> >>>>> which
> >>>>>
> >>>>>
> >>>>>>>> are
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> PEAR descriptors. These descriptors define components plus
> >>>>>>>>>
> >>> include
> >>>
> >>>>>>>>> information on the class path needed to run them."
> >>>>>>>>> Question: To get the individual class loader for each primitive
> >>>>>>>>>
> >>> AE
> >>>
> >>>>>>>>>
> >>>>>>>> defined
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> in an aggregate AE, do we have to specify/map the PEAR
> descriptor
> >>>>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> >>>>>>>>>
> >>>>>>>>>
> >>>>> where
> >>>>>
> >>>>>
> >>>>>>>> and
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> how to do it?
> >>>>>>>>>
> >>>>>>>>> Any comments/recommendations would be appreciated.
> >>>>>>>>>
> >>>>>>>>> Thanks,
> >>>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>>>>>>> descriptors, which include the class path information.
> >>>>>>>>>>
> >>>>>>>>>> This should allow you to run a pipeline where each annotator
> >>>>>>>>>>
> >>> could
> >>>
> >>>>>>>>>>
> >>>>>>>> have
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>> different versions of classes.
> >>>>>>>>>> See
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>>
> >>>>>>>>>> Is that what you're trying to do?
> >>>>>>>>>>
> >>>>>>>>>> -Marshall
> >>>>>>>>>>
> >>>>>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> Hi Guys,
> >>>>>>>>>>>
> >>>>>>>>>>> I'd like to ask a couple of questions regarding the
> classloader
> >>>>>>>>>>>
> >>> in
> >>>
> >>>>>>>>>>>
> >>>>>>>> UIMA
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>> 2.2.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>> different
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>> class
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> loaders for each aggregated primitive analysis engines, so
> that
> >>>>>>>>>>>
> >>> the
> >>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>> classes
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> won't interfere each others?
> >>>>>>>>>>>
> >>>>>>>>>>> If there is so, could you please shed some light how to do it?
> >>>>>>>>>>>
> >>> I've
> >>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>> looked
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> into the source code and documentation but no luck :(
> >>>>>>>>>>>
> >>>>>>>>>>> Many Thanks,
> >>>>>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>
> >>>
> >
> >
>

Re: UIMA Source Code

Posted by Matthew Campbell <mc...@syrres.com>.
And Adam beat me to it...I took to long to formulate my thoughts.  I 
should say thanks though for the help you guys have given everyone on 
this list (even the lurkers like myself).  It's helped tremendously.


-Matt

Matthew Campbell wrote:
> Vijay:
>
>    I'm not a UIMA expert (or a J2EE one for that matter), but the goal 
> you're described of getting UIMA to support a JSP interface doesn't 
> seem like it would be much different than developing any other java 
> application.  I would suggest working through the documentation 
> Michael linked to at least up to where they go through the first 
> tutorial example (which is included in the UIMA source bundle you 
> downloaded or got from subversion).  Then try and get that example 
> working in the J2EE container.
>    From my little experience with JSP, I'd imagine you would implement 
> the doGet() or whatever to read in the analysis engine descriptor, 
> create the JCAS, run it through the text you want to display on the 
> page, then walk through the annotations and replace each string with 
> whenever your processed string should look like.  Finally, you'd 
> render the processed text to the page.  To actually get the value of 
> the request into your AE, you can set configuration parameters 
> programmatically as seem in the documentation at:
>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.setting_configuration_parameters 
>
>
> I would make your analysis engine have a configuration parameter 
> called "searchTerm" or something, then have the JSP set the value for 
> that configuration parameter to the value of the request before 
> calling the AE's process() method.
>    Honestly, I don't know the specifics of your problem or what you're 
> trying to accomplish in the long run, so I don't know what UIMA is 
> buying you functionality-wise in this particular case (but then, I'm 
> relatively new to UIMA too).  It seems like you could just skip the 
> whole UIMA step, loading the page text into a stringbuffer and using 
> regular expressions if all you're doing is straight text searching.
>    I don't know if this answers your question, and I'm afraid I can't 
> help much more than this.  All I can say is the documentation and 
> examples found therein are very helpful, so you really should do 
> yourself a favor and camp out with the Apache documentation for a 
> while to get an idea of what can be done.  Good luck :-D.
>
>
> -Matt
>
> vijay vijay wrote:
>> plz michale
>> give me response
>>
>>
>>
>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>>  
>>> thank u for ur kind response,
>>>
>>>                      let me tell u exactley where i am
>>>
>>>                   i have downloded  plugins for eclipse and i have 
>>> wriiten
>>> code for analysis engine and java class for annotation where it 
>>> reads two
>>> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
>>> sucessfully. i am able get the annotation in document analyzer.
>>>
>>>                     here i thought insted of hardcoding or sending 
>>> it as
>>> parameters Can we pass annotations dynamically? i have put this 
>>> question
>>> acroos forums no replies for it.
>>>
>>>                    how do u  write main class? in uima...........
>>>
>>>                  i have deployed examples up to collection process 
>>> engine.
>>>
>>>            I will tell u my aim also i want to send Michale as client
>>> request from a jsp page it should be able to get all occurences of
>>> michale.how do u achive this?
>>>
>>>         thats what i am aiming for,if u suggest me  how to proceed i 
>>> will
>>> be thank full to u ,i thinking that u are like guide to me.no one is 
>>> there
>>> to help me.i have searched across web so many pdfs but i storgley 
>>> belive
>>> that i need some help form some one and that is u ,every thing is in ur
>>> hands to say yes or no is up to u boss .
>>>
>>>     i am happy for ur response.once again thank u micahle.
>>> bye
>>>  vijay
>>>
>>>
>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>    
>>>> Start reading the Apache UIMA documentation if you want to work with
>>>> Apache UIMA. I think
>>>> UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
>>>>
>>>> The Apache UIMA documentation is available at:
>>>> http://incubator.apache.org/uima/documentation.html
>>>>
>>>> You want to find some entities in text documents? What kind of 
>>>> entities?
>>>>
>>>> Look at the UIMA sandbox maybe there
>>>> are some components that can help you.
>>>>
>>>> -- Michael
>>>>
>>>> vijay vijay wrote:
>>>>      
>>>>> Hi Michael
>>>>>                      PLz something personal........spend ur valuable
>>>>>         
>>>> time
>>>>      
>>>>> for me.....
>>>>>                     i have staterd study on this Uima 3 weeks back
>>>>>         
>>>> till now
>>>>      
>>>>> i have not gained anything from it.i have loged many forums where i
>>>>>         
>>>> have not
>>>>      
>>>>> any response.i think i might disturbing u with my stupid mails.
>>>>>
>>>>>                  i need some guidence for u,i would like to how to
>>>>>         
>>>> approch
>>>>      
>>>>> to my problem?
>>>>> i want to search for text in  my local files using this uima concept.
>>>>>         
>>>> till
>>>>      
>>>>> now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
>>>>>
>>>>>                    once again sorry to ask u like this.if some one
>>>>>         
>>>> gives me
>>>>      
>>>>> a fair idea abt this hoe to proceed i will be the most happeist.
>>>>>
>>>>> vijay
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>>>
>>>>>        
>>>>>> Hi Vijay,
>>>>>>
>>>>>> this has nothing to do with UIMA 2.2 Class Loader so please do not
>>>>>>           
>>>> use
>>>>      
>>>>>> this topic for positing!!
>>>>>>
>>>>>> http://incubator.apache.org/uima/svn.html
>>>>>>
>>>>>> -- Michael
>>>>>>
>>>>>> vijay vijay wrote:
>>>>>>
>>>>>>          
>>>>>>> Hi guys,
>>>>>>>
>>>>>>>                     where can i get source code for this 
>>>>>>> Uima.mybasic
>>>>>>>
>>>>>>>             
>>>>>> aim
>>>>>>
>>>>>>          
>>>>>>> is to search for text in local folders.can any one suugest
>>>>>>> me.plzzzzzzzz......
>>>>>>>
>>>>>>> vijay
>>>>>>>
>>>>>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>>            
>>>>>>>> Hi Michael,
>>>>>>>>                   the link which u have provided is very
>>>>>>>>               
>>>> inresting.socan
>>>>      
>>>>>>>> u send me links which are usefull to the a fresher to this topic
>>>>>>>>
>>>>>>>> plz spare ur valuable time for few mins waiting for ue reply.
>>>>>>>> vijay
>>>>>>>>
>>>>>>>>
>>>>>>>> On 8/30/07, Michael Baessler < mba@michael-baessler.de> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>              
>>>>>>>>> Are your primitive engines available as PEAR files? That is 
>>>>>>>>> needed
>>>>>>>>>
>>>>>>>>>                 
>>>>>> since
>>>>>>
>>>>>>          
>>>>>>>>> only if you have them as PEAR files
>>>>>>>>> you can use the PEAR descriptor.
>>>>>>>>>
>>>>>>>>> After you have installed the PEAR files a PEAR descriptor is
>>>>>>>>> automatically generated (located in the install directory). This
>>>>>>>>> descriptor have to
>>>>>>>>> be used in the aggregate to refer to the primitive AEs.
>>>>>>>>>
>>>>>>>>> -- Michael
>>>>>>>>>
>>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> Thanks Marshall for the information and for asking :)
>>>>>>>>>>
>>>>>>>>>> What I have tried is that I have a description of an aggregate
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>> analysis
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> engine which has 4 primitive analysis engine defined. Those
>>>>>>>>>>                   
>>>> primitive
>>>>      
>>>>>>>>>>                   
>>>>>>>>> AE
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> descriptions are all fully defined (no imports) under the
>>>>>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do 
>>>>>>>>>> this
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>> because
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> those primitive AE descriptions are generated on the fly. For 
>>>>>>>>>> one
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>> thing,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> each primitive AE has its own PEAR-compliant directory. In this
>>>>>>>>>>                   
>>>> case,
>>>>      
>>>>>>>>>>                   
>>>>>>>>> I
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> could not figure out how to tell UIMA the location those
>>>>>>>>>>                   
>>>> directories.
>>>>      
>>>>>>>>>> Excerpt from section 5.8 in the UIMA References page:
>>>>>>>>>> "As of version 2.2, the framework supports component descriptors
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>> which
>>>>>>
>>>>>>          
>>>>>>>>> are
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> PEAR descriptors. These descriptors define components plus
>>>>>>>>>>                   
>>>> include
>>>>      
>>>>>>>>>> information on the class path needed to run them."
>>>>>>>>>> Question: To get the individual class loader for each primitive
>>>>>>>>>>                   
>>>> AE
>>>>      
>>>>>>>>>>                   
>>>>>>>>> defined
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> in an aggregate AE, do we have to specify/map the PEAR 
>>>>>>>>>> descriptor
>>>>>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>> where
>>>>>>
>>>>>>          
>>>>>>>>> and
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>> how to do it?
>>>>>>>>>>
>>>>>>>>>> Any comments/recommendations would be appreciated.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                  
>>>>>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>>>>>>>> descriptors, which include the class path information.
>>>>>>>>>>>
>>>>>>>>>>> This should allow you to run a pipeline where each annotator
>>>>>>>>>>>                     
>>>> could
>>>>      
>>>>>>>>>>>                     
>>>>>>>>> have
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>>> different versions of classes.
>>>>>>>>>>> See
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                     
>>>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support 
>>>>
>>>>      
>>>>>>>>>>> Is that what you're trying to do?
>>>>>>>>>>>
>>>>>>>>>>> -Marshall
>>>>>>>>>>>
>>>>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                    
>>>>>>>>>>>> Hi Guys,
>>>>>>>>>>>>
>>>>>>>>>>>> I'd like to ask a couple of questions regarding the 
>>>>>>>>>>>> classloader
>>>>>>>>>>>>                       
>>>> in
>>>>      
>>>>>>>>>>>>                       
>>>>>>>>> UIMA
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>>> 2.2.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                    
>>>>>>>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                       
>>>>>>>>> different
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                
>>>>>>>>>>> class
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                    
>>>>>>>>>>>> loaders for each aggregated primitive analysis engines, so 
>>>>>>>>>>>> that
>>>>>>>>>>>>                       
>>>> the
>>>>      
>>>>>>>>>>>>
>>>>>>>>>>>>                       
>>>>>>>>>>> classes
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                    
>>>>>>>>>>>> won't interfere each others?
>>>>>>>>>>>>
>>>>>>>>>>>> If there is so, could you please shed some light how to do it?
>>>>>>>>>>>>                       
>>>> I've
>>>>      
>>>>>>>>>>>>
>>>>>>>>>>>>                       
>>>>>>>>>>> looked
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                    
>>>>>>>>>>>> into the source code and documentation but no luck :(
>>>>>>>>>>>>
>>>>>>>>>>>> Many Thanks,
>>>>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                       
>>>>>         
>>>>       
>>
>>   
>

Re: UIMA Source Code

Posted by Matthew Campbell <mc...@syrres.com>.
Vijay:

    I'm not a UIMA expert (or a J2EE one for that matter), but the goal 
you're described of getting UIMA to support a JSP interface doesn't seem 
like it would be much different than developing any other java 
application.  I would suggest working through the documentation Michael 
linked to at least up to where they go through the first tutorial 
example (which is included in the UIMA source bundle you downloaded or 
got from subversion).  Then try and get that example working in the J2EE 
container.
    From my little experience with JSP, I'd imagine you would implement 
the doGet() or whatever to read in the analysis engine descriptor, 
create the JCAS, run it through the text you want to display on the 
page, then walk through the annotations and replace each string with 
whenever your processed string should look like.  Finally, you'd render 
the processed text to the page.  To actually get the value of the 
request into your AE, you can set configuration parameters 
programmatically as seem in the documentation at:

http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.setting_configuration_parameters

I would make your analysis engine have a configuration parameter called 
"searchTerm" or something, then have the JSP set the value for that 
configuration parameter to the value of the request before calling the 
AE's process() method.
    Honestly, I don't know the specifics of your problem or what you're 
trying to accomplish in the long run, so I don't know what UIMA is 
buying you functionality-wise in this particular case (but then, I'm 
relatively new to UIMA too).  It seems like you could just skip the 
whole UIMA step, loading the page text into a stringbuffer and using 
regular expressions if all you're doing is straight text searching.
    I don't know if this answers your question, and I'm afraid I can't 
help much more than this.  All I can say is the documentation and 
examples found therein are very helpful, so you really should do 
yourself a favor and camp out with the Apache documentation for a while 
to get an idea of what can be done.  Good luck :-D.


-Matt

vijay vijay wrote:
> plz michale
> give me response
>
>
>
> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>   
>> thank u for ur kind response,
>>
>>                      let me tell u exactley where i am
>>
>>                   i have downloded  plugins for eclipse and i have wriiten
>> code for analysis engine and java class for annotation where it reads two
>> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
>> sucessfully. i am able get the annotation in document analyzer.
>>
>>                     here i thought insted of hardcoding or sending it as
>> parameters Can we pass annotations dynamically? i have put this question
>> acroos forums no replies for it.
>>
>>                    how do u  write main class? in uima...........
>>
>>                  i have deployed examples up to collection process engine.
>>
>>            I will tell u my aim also i want to send Michale as client
>> request from a jsp page it should be able to get all occurences of
>> michale.how do u achive this?
>>
>>         thats what i am aiming for,if u suggest me  how to proceed i will
>> be thank full to u ,i thinking that u are like guide to me.no one is there
>> to help me.i have searched across web so many pdfs but i storgley belive
>> that i need some help form some one and that is u ,every thing is in ur
>> hands to say yes or no is up to u boss .
>>
>>     i am happy for ur response.once again thank u micahle.
>> bye
>>  vijay
>>
>>
>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>     
>>> Start reading the Apache UIMA documentation if you want to work with
>>> Apache UIMA. I think
>>> UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
>>>
>>> The Apache UIMA documentation is available at:
>>> http://incubator.apache.org/uima/documentation.html
>>>
>>> You want to find some entities in text documents? What kind of entities?
>>>
>>> Look at the UIMA sandbox maybe there
>>> are some components that can help you.
>>>
>>> -- Michael
>>>
>>> vijay vijay wrote:
>>>       
>>>> Hi Michael
>>>>                      PLz something personal........spend ur valuable
>>>>         
>>> time
>>>       
>>>> for me.....
>>>>                     i have staterd study on this Uima 3 weeks back
>>>>         
>>> till now
>>>       
>>>> i have not gained anything from it.i have loged many forums where i
>>>>         
>>> have not
>>>       
>>>> any response.i think i might disturbing u with my stupid mails.
>>>>
>>>>                  i need some guidence for u,i would like to how to
>>>>         
>>> approch
>>>       
>>>> to my problem?
>>>> i want to search for text in  my local files using this uima concept.
>>>>         
>>> till
>>>       
>>>> now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
>>>>
>>>>                    once again sorry to ask u like this.if some one
>>>>         
>>> gives me
>>>       
>>>> a fair idea abt this hoe to proceed i will be the most happeist.
>>>>
>>>> vijay
>>>>
>>>>
>>>>
>>>>
>>>> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>>
>>>>         
>>>>> Hi Vijay,
>>>>>
>>>>> this has nothing to do with UIMA 2.2 Class Loader so please do not
>>>>>           
>>> use
>>>       
>>>>> this topic for positing!!
>>>>>
>>>>> http://incubator.apache.org/uima/svn.html
>>>>>
>>>>> -- Michael
>>>>>
>>>>> vijay vijay wrote:
>>>>>
>>>>>           
>>>>>> Hi guys,
>>>>>>
>>>>>>                     where can i get source code for this Uima.mybasic
>>>>>>
>>>>>>             
>>>>> aim
>>>>>
>>>>>           
>>>>>> is to search for text in local folders.can any one suugest
>>>>>> me.plzzzzzzzz......
>>>>>>
>>>>>> vijay
>>>>>>
>>>>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi Michael,
>>>>>>>                   the link which u have provided is very
>>>>>>>               
>>> inresting.socan
>>>       
>>>>>>> u send me links which are usefull to the a fresher to this topic
>>>>>>>
>>>>>>> plz spare ur valuable time for few mins waiting for ue reply.
>>>>>>> vijay
>>>>>>>
>>>>>>>
>>>>>>> On 8/30/07, Michael Baessler < mba@michael-baessler.de> wrote:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> Are your primitive engines available as PEAR files? That is needed
>>>>>>>>
>>>>>>>>                 
>>>>> since
>>>>>
>>>>>           
>>>>>>>> only if you have them as PEAR files
>>>>>>>> you can use the PEAR descriptor.
>>>>>>>>
>>>>>>>> After you have installed the PEAR files a PEAR descriptor is
>>>>>>>> automatically generated (located in the install directory). This
>>>>>>>> descriptor have to
>>>>>>>> be used in the aggregate to refer to the primitive AEs.
>>>>>>>>
>>>>>>>> -- Michael
>>>>>>>>
>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Thanks Marshall for the information and for asking :)
>>>>>>>>>
>>>>>>>>> What I have tried is that I have a description of an aggregate
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>> analysis
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> engine which has 4 primitive analysis engine defined. Those
>>>>>>>>>                   
>>> primitive
>>>       
>>>>>>>>>                   
>>>>>>>> AE
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> descriptions are all fully defined (no imports) under the
>>>>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>> because
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> those primitive AE descriptions are generated on the fly. For one
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>> thing,
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> each primitive AE has its own PEAR-compliant directory. In this
>>>>>>>>>                   
>>> case,
>>>       
>>>>>>>>>                   
>>>>>>>> I
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> could not figure out how to tell UIMA the location those
>>>>>>>>>                   
>>> directories.
>>>       
>>>>>>>>> Excerpt from section 5.8 in the UIMA References page:
>>>>>>>>> "As of version 2.2, the framework supports component descriptors
>>>>>>>>>
>>>>>>>>>                   
>>>>> which
>>>>>
>>>>>           
>>>>>>>> are
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> PEAR descriptors. These descriptors define components plus
>>>>>>>>>                   
>>> include
>>>       
>>>>>>>>> information on the class path needed to run them."
>>>>>>>>> Question: To get the individual class loader for each primitive
>>>>>>>>>                   
>>> AE
>>>       
>>>>>>>>>                   
>>>>>>>> defined
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
>>>>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
>>>>>>>>>
>>>>>>>>>                   
>>>>> where
>>>>>
>>>>>           
>>>>>>>> and
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> how to do it?
>>>>>>>>>
>>>>>>>>> Any comments/recommendations would be appreciated.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>>>>>>> descriptors, which include the class path information.
>>>>>>>>>>
>>>>>>>>>> This should allow you to run a pipeline where each annotator
>>>>>>>>>>                     
>>> could
>>>       
>>>>>>>>>>                     
>>>>>>>> have
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>>> different versions of classes.
>>>>>>>>>> See
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>>       
>>>>>>>>>> Is that what you're trying to do?
>>>>>>>>>>
>>>>>>>>>> -Marshall
>>>>>>>>>>
>>>>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> Hi Guys,
>>>>>>>>>>>
>>>>>>>>>>> I'd like to ask a couple of questions regarding the classloader
>>>>>>>>>>>                       
>>> in
>>>       
>>>>>>>>>>>                       
>>>>>>>> UIMA
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>>> 2.2.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>> different
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>>> class
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> loaders for each aggregated primitive analysis engines, so that
>>>>>>>>>>>                       
>>> the
>>>       
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>> classes
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> won't interfere each others?
>>>>>>>>>>>
>>>>>>>>>>> If there is so, could you please shed some light how to do it?
>>>>>>>>>>>                       
>>> I've
>>>       
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>> looked
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> into the source code and documentation but no luck :(
>>>>>>>>>>>
>>>>>>>>>>> Many Thanks,
>>>>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>         
>>>       
>
>   

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
plz michale
give me response



On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>
> thank u for ur kind response,
>
>                      let me tell u exactley where i am
>
>                   i have downloded  plugins for eclipse and i have wriiten
> code for analysis engine and java class for annotation where it reads two
> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
> sucessfully. i am able get the annotation in document analyzer.
>
>                     here i thought insted of hardcoding or sending it as
> parameters Can we pass annotations dynamically? i have put this question
> acroos forums no replies for it.
>
>                    how do u  write main class? in uima...........
>
>                  i have deployed examples up to collection process engine.
>
>            I will tell u my aim also i want to send Michale as client
> request from a jsp page it should be able to get all occurences of
> michale.how do u achive this?
>
>         thats what i am aiming for,if u suggest me  how to proceed i will
> be thank full to u ,i thinking that u are like guide to me.no one is there
> to help me.i have searched across web so many pdfs but i storgley belive
> that i need some help form some one and that is u ,every thing is in ur
> hands to say yes or no is up to u boss .
>
>     i am happy for ur response.once again thank u micahle.
> bye
>  vijay
>
>
> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> > Start reading the Apache UIMA documentation if you want to work with
> > Apache UIMA. I think
> > UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
> >
> > The Apache UIMA documentation is available at:
> > http://incubator.apache.org/uima/documentation.html
> >
> > You want to find some entities in text documents? What kind of entities?
> >
> > Look at the UIMA sandbox maybe there
> > are some components that can help you.
> >
> > -- Michael
> >
> > vijay vijay wrote:
> > > Hi Michael
> > >                      PLz something personal........spend ur valuable
> > time
> > > for me.....
> > >                     i have staterd study on this Uima 3 weeks back
> > till now
> > > i have not gained anything from it.i have loged many forums where i
> > have not
> > > any response.i think i might disturbing u with my stupid mails.
> > >
> > >                  i need some guidence for u,i would like to how to
> > approch
> > > to my problem?
> > > i want to search for text in  my local files using this uima concept.
> > till
> > > now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
> > >
> > >                    once again sorry to ask u like this.if some one
> > gives me
> > > a fair idea abt this hoe to proceed i will be the most happeist.
> > >
> > > vijay
> > >
> > >
> > >
> > >
> > > On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> > >
> > >> Hi Vijay,
> > >>
> > >> this has nothing to do with UIMA 2.2 Class Loader so please do not
> > use
> > >> this topic for positing!!
> > >>
> > >> http://incubator.apache.org/uima/svn.html
> > >>
> > >> -- Michael
> > >>
> > >> vijay vijay wrote:
> > >>
> > >>> Hi guys,
> > >>>
> > >>>                     where can i get source code for this Uima.mybasic
> > >>>
> > >> aim
> > >>
> > >>> is to search for text in local folders.can any one suugest
> > >>> me.plzzzzzzzz......
> > >>>
> > >>> vijay
> > >>>
> > >>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> > >>>
> > >>>
> > >>>> Hi Michael,
> > >>>>                   the link which u have provided is very
> > inresting.socan
> > >>>> u send me links which are usefull to the a fresher to this topic
> > >>>>
> > >>>> plz spare ur valuable time for few mins waiting for ue reply.
> > >>>> vijay
> > >>>>
> > >>>>
> > >>>> On 8/30/07, Michael Baessler < mba@michael-baessler.de> wrote:
> > >>>>
> > >>>>
> > >>>>> Are your primitive engines available as PEAR files? That is needed
> > >>>>>
> > >> since
> > >>
> > >>>>> only if you have them as PEAR files
> > >>>>> you can use the PEAR descriptor.
> > >>>>>
> > >>>>> After you have installed the PEAR files a PEAR descriptor is
> > >>>>> automatically generated (located in the install directory). This
> > >>>>> descriptor have to
> > >>>>> be used in the aggregate to refer to the primitive AEs.
> > >>>>>
> > >>>>> -- Michael
> > >>>>>
> > >>>>> Danai Wiriyayanyongsuk wrote:
> > >>>>>
> > >>>>>
> > >>>>>> Thanks Marshall for the information and for asking :)
> > >>>>>>
> > >>>>>> What I have tried is that I have a description of an aggregate
> > >>>>>>
> > >>>>>>
> > >>>>> analysis
> > >>>>>
> > >>>>>
> > >>>>>> engine which has 4 primitive analysis engine defined. Those
> > primitive
> > >>>>>>
> > >>>>>>
> > >>>>> AE
> > >>>>>
> > >>>>>
> > >>>>>> descriptions are all fully defined (no imports) under the
> > >>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> > >>>>>>
> > >>>>>>
> > >>>>> because
> > >>>>>
> > >>>>>
> > >>>>>> those primitive AE descriptions are generated on the fly. For one
> > >>>>>>
> > >>>>>>
> > >>>>> thing,
> > >>>>>
> > >>>>>
> > >>>>>> each primitive AE has its own PEAR-compliant directory. In this
> > case,
> > >>>>>>
> > >>>>>>
> > >>>>> I
> > >>>>>
> > >>>>>
> > >>>>>> could not figure out how to tell UIMA the location those
> > directories.
> > >>>>>>
> > >>>>>> Excerpt from section 5.8 in the UIMA References page:
> > >>>>>> "As of version 2.2, the framework supports component descriptors
> > >>>>>>
> > >> which
> > >>
> > >>>>> are
> > >>>>>
> > >>>>>
> > >>>>>> PEAR descriptors. These descriptors define components plus
> > include
> > >>>>>> information on the class path needed to run them."
> > >>>>>> Question: To get the individual class loader for each primitive
> > AE
> > >>>>>>
> > >>>>>>
> > >>>>> defined
> > >>>>>
> > >>>>>
> > >>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> > >>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> > >>>>>>
> > >> where
> > >>
> > >>>>> and
> > >>>>>
> > >>>>>
> > >>>>>> how to do it?
> > >>>>>>
> > >>>>>> Any comments/recommendations would be appreciated.
> > >>>>>>
> > >>>>>> Thanks,
> > >>>>>> Danai Wiriyayanyongsuk
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> > >>>>>>> descriptors, which include the class path information.
> > >>>>>>>
> > >>>>>>> This should allow you to run a pipeline where each annotator
> > could
> > >>>>>>>
> > >>>>>>>
> > >>>>> have
> > >>>>>
> > >>>>>
> > >>>>>>> different versions of classes.
> > >>>>>>> See
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>
> > http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> > >>
> > >>>>>>> Is that what you're trying to do?
> > >>>>>>>
> > >>>>>>> -Marshall
> > >>>>>>>
> > >>>>>>> Danai Wiriyayanyongsuk wrote:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> Hi Guys,
> > >>>>>>>>
> > >>>>>>>> I'd like to ask a couple of questions regarding the classloader
> > in
> > >>>>>>>>
> > >>>>>>>>
> > >>>>> UIMA
> > >>>>>
> > >>>>>
> > >>>>>>> 2.2.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> For an aggregate analysis engine, is there a way to have/set
> > >>>>>>>>
> > >>>>>>>>
> > >>>>> different
> > >>>>>
> > >>>>>
> > >>>>>>> class
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> loaders for each aggregated primitive analysis engines, so that
> > the
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>> classes
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> won't interfere each others?
> > >>>>>>>>
> > >>>>>>>> If there is so, could you please shed some light how to do it?
> > I've
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>> looked
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> into the source code and documentation but no luck :(
> > >>>>>>>>
> > >>>>>>>> Many Thanks,
> > >>>>>>>> Danai Wiriyayanyongsuk
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>
> > >>
> > >
> > >
> >
> >
>

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Thank you *Adam Lally* ,

                                     as u said form now onwards i don't beg
and second thing is i will try to improve my spell mistakes.i am going
through ur responses ans felt happy for it.I am new to this forum
stuff.Ihave joined in a  company called iton 17 th of july, this is my
first
experience and starting it self they have asked me to work on this UIMA.so i
have been doing so much search on this uima.

                               i will gothrouh it and mail u back
with whatever i have done with updates.........
thank u
vijay


On 9/12/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> Vijay,
>
> This message, where you say what you did so far and ask a specific
> question, is a step in the right direction.  So I'm going to try to
> answer your questions.  But if you say "plz give me response" or any
> kind of begging for help one more time I am never responding to any of
> your messages again.  Sorry to be so blunt, but begging for help does
> NOT make us more likely to help you, and you have to stop.  We are all
> busy people and it is very disrespectful to do what you just did and
> send a follow up message after only 3 hours, being upset that Michael
> didn't take time from his day during those particular 3 hours to give
> you a response.
>
> Responses below...
>
> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> > thank u for ur kind response,
> >
> >                      let me tell u exactley where i am
> >
> >                   i have downloded  plugins for eclipse and i have
> wriiten
> > code for analysis engine and java class for annotation where it reads
> two
> > strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
> > sucessfully. i am able get the annotation in document analyzer.
> >
> >                     here i thought insted of hardcoding or sending it as
> > parameters Can we pass annotations dynamically? i have put this question
> > acroos forums no replies for it.
> >
>
> You can set a configuration parameter dynamically.  So if your
> annotator has a  multivalued configuration parameter called
> "StringsToAnnotate" of type String, you can set that from your
> application using:
>
> analysisEngine.setConfigParameterValue("StringsToAnnotate",
> new String[] {"Michael","UIMA","Vijay",....});
>
>
> >                    how do u  write main class? in uima...........
> >
>
> Have you looked at ExampleApplication.java?  It is in the UIMA SDK
> example source code
> (examples/src/org/apache/uima/examples/ExampleApplication.java).  It
> shows how you create an AnalysisEngine object from a descriptor, and
> then pass documents to it and read the results.
>
> There's also a detailed discussion of this in the "Application
> Developer's Guide" chapter of the manual.  Here's a link to the online
> documentation:
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application
> .
>
> If you try for a while to get this to work and something is still not
> working, then post a follow up question saying what exactly you tried
> and what exactly is going wrong.  Posting code and any exception
> messages will be very helpful and will encourage people to respond
> more quickly.
>
> >                  i have deployed examples up to collection process
> engine.
> >
> >            I will tell u my aim also i want to send Michale as client
> > request from a jsp page it should be able to get all occurences of
> > michale.how do u achive this?
> >
>
> Get all occurrences of "Michael" from where? Do you have a collection
> of documents that you want to search?
>
> Using the advice I gave above you could create an AnalysisEngine, set
> the StringsToAnnotate parameter to "Michael" and then run it over a
> collection of documents.  But if your collection is of any significant
> size this will take a long time, so you can't expect a user to submit
> a request over the web and sit there waiting for the response.
>
> Typically for search applications using UIMA is that you run your
> annotator off-line and produce an index, which you then search against
> when the user submits a request.  Of course you have to know what
> kinds of things you are looking for ahead of time.
>
> If you're just searching for strings like "Michael" and you don't know
> what they are ahead of time, you might as well just use Google, you
> don't need UIMA for that.
>
> >         thats what i am aiming for,if u suggest me  how to proceed i
> will be
> > thank full to u ,i thinking that u are like guide to me.no one is there
> to
> > help me.i have searched across web so many pdfs but i storgley belive
> that i
> > need some help form some one and that is u ,every thing is in ur hands
> to
> > say yes or no is up to u boss .
> >
> >     i am happy for ur response.once again thank u micahle.
>
> This isn't helping.  You can say "Thank you for your help" once but
> you don't need a whole paragraph plus yet another sentence to say it.
>
> And while I can overlook lots of spelling errors, why don't you seem
> able to type "Michael" correctly?  All you have to do is copy it from
> the previous email!  Not taking the time to spell people's names
> correctly is also not very respectful to people that are taking time
> out of their busy day just to help you out.  And would it kill you to
> capitalize the first letter of sentences and spell out "you" and
> "your"?  This is email, not instant messaging.
>
> Regards,
> -Adam
>

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi Adam

                  i am uising IBM UIMA in eclipse 3.2 .do i need to cahngs
from it.do i need really change  from it to apache version.

                       yes i have noticed ur comment,i will work on it
today.still i have not got the example what u said. which is ""
ExampleApplication.java's"".i will look in to it

vijay


On 9/13/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
> > Hi  Adam Lally ,
> >
> >                            as per ur code below i have tried
> >
> >
> > analysisEngine.setConfigParameterValue("StringsToAnnotate",
> >  new String[] {"Michael","UIMA","Vijay",....}); but it is
> > giving anerror like analysisEngine cannot be resolved. i am attching the
> > class what i wrote.
> >
>
> Vijay,
>
> The setConfigParameterValue call does not go in the annotator.  It
> goes in your main program.  The idea is that the main program sets the
> configuration parameter values before calling the annotator.  It
> wouldn't make any sense for the annotator code to set its own
> configuration parameter values, then it might as well just hardcode
> the values it was searching for!
>
> Did you look at ExampleApplication.java yet?  You asked how to write a
> Main program, and you were on the right track with that.  In
> ExampleApplication.java's main method you have this line of code:
>
>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);
>
> And you would put after it:
>
> ae.setConfigParameterValue("StringsToAnnotate", new String[]
> {"Michael","UIMA","Vijay"});
>
> Regards,
> -Adam
>

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
thank u matthew,

                             as u said i have given 3 paths in argument and
it is working.But the problem is i am getting the annotation for
"michael,vijay,uima" which are passed as configartion parameters.
i got result "who" which is passed as class for the AnalysisDescription.so i
have included that annoattion in this example.

                               Michael also gave me reply said that i have
to add reconfigure method also.
and i also done one samll thing which is i have deplyoing it as web
application.i have put this class in src  folder .i have douat here can i
put xml's(analysis engine and typeSystem descriptors in web.xml?

vijay


On 9/14/07, Matthew Campbell <mc...@syrres.com> wrote:
>
> Vijay:
>
>    "System.err.println()" only displays that message in the console
> telling you how to run the java application.  Usage statements are
> common in Java console programs, since they tell you how to use a new
> program and what arguments should be passed to it when you don't invoke
> it correctly.  It looks like you have the right *idea*, but you don't
> put those directories into the System.err call (that would just print
> them out on the console with the message) - you pass them on the command
> line.  In Eclipse, you can pass them by clicking Run >> Open Run Dialog,
> making sure the ExampleApplication is selected as your main class, and
> adding the three paths (the analysis engine descriptor, input directory,
> and output directory) to the Program Arguments box in the Arguments
> tab.  Make sure to surround each argument/directory with double-quotes
> if they have spaces in them (it doesn't appear so in your example code
> here).
>    As for the error about missing ")", you've sort of butchered the
> quotation marks in that System.err call.  Eclipse should be syntax
> highlighting that for you, so you should be able to work out when the
> string is closed with the correct quotation mark and when it isn't.  I
> would just change it back to the way it was though and save yourself
> some time.
>    These aren't really UIMA errors, though, but fundamental Java ones,
> so I don't know if this is really the place to discuss them (Sun's Java
> forums may be better suited to some of the general Java questions).
> Walk through the code of the ExampleApplication starting from the main()
> method.  If there are things you don't understand or are giving you
> errors when you run it, do a quick google search to see if other folks
> have had the same problem.  Make a decent effort to debug on your own,
> and then come back if you're up against a wall.
>
>    Sidestepping to your question about regular expressions, their used
> to match patterns in strings, and I'm sure you'll find them very useful
> both inside and outside of UIMA.  I find the website
> http://www.regular-expressions.info/ very helpful when reading up on the
> subject, but again, Google is your friend.
>
>
> -Matt
>
> vijay vijay wrote:
> > Hi adam,
> >
> >
> >               at last i found the java class,so i just added that class
> to
> > my project wrote as a java
> >  class,there i am getting an lke this
> >
> >  Usage: java com.ibm.uima.example.ExampleApplication <TAE descriptor or
> TEAR
> > file name> <input dir> <output dir>""
> >
> > actually i have tried this when i am doing my first example i got the
> same
> > error .now i have given here like this
> >
> >
> > System.*err*.println("Usage: java
> com.ibm.uima.example.ExampleApplication "+
> > "<AnalysisEngine.xml> +
> <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> > <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> > i am getting an error like this
> >
> > "Syntax error, insert ")" to complete MethodInvocation".
> > i have tried not my best.
> >
> > AND my aim also develop full fleged compnent to search for unstructured
> > data,my people want to use this as search tool in their project.this one
> is
> > ultimate goal.
> >
> > i don't how far i am going to suceed in this but i want give my best
> with ur
> > support.......
> >
> > vijay
> >
> >
> > On 9/13/07, Adam Lally <al...@alum.rpi.edu> wrote:
> >
> >
> >
> >> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
> >>
> >>> Hi  Adam Lally ,
> >>>
> >>>                            as per ur code below i have tried
> >>>
> >>>
> >>> analysisEngine.setConfigParameterValue("StringsToAnnotate",
> >>>  new String[] {"Michael","UIMA","Vijay",....}); but it is
> >>> giving anerror like analysisEngine cannot be resolved. i am attching
> the
> >>> class what i wrote.
> >>>
> >>>
> >> Vijay,
> >>
> >> The setConfigParameterValue call does not go in the annotator.  It
> >> goes in your main program.  The idea is that the main program sets the
> >> configuration parameter values before calling the annotator.  It
> >> wouldn't make any sense for the annotator code to set its own
> >> configuration parameter values, then it might as well just hardcode
> >> the values it was searching for!
> >>
> >> Did you look at ExampleApplication.java yet?  You asked how to write a
> >> Main program, and you were on the right track with that.  In
> >> ExampleApplication.java's main method you have this line of code:
> >>
> >>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine
> (specifier);
> >>
> >> And you would put after it:
> >>
> >> ae.setConfigParameterValue("StringsToAnnotate", new String[]
> >> {"Michael","UIMA","Vijay"});
> >>
> >> Regards,
> >> -Adam
> >>
> >>
> >
> >
>

Re: UIMA Source Code

Posted by Matthew Campbell <mc...@syrres.com>.
Vijay:

    You're quickly passing my familiarity with the J2EE work, so I'm not 
sure what you mean by "descritor,input and out put in webroot".  Do you 
mean you've actually placed the XML from the descriptor into the web.xml 
file?  If that's the case, I don't think that'll work.  I would place 
the the Analysis Engine descriptor into the same directory as that 
ExampleApplication.java code (the classes folder maybe).  That way the 
class can get at the descriptor without having to worry about resource 
mappings and paths.
    I'm not really sure what's going on other that that, but the error 
message you're getting ("com.ibm.uima.util.InvalidXMLException".invalid 
descriptor file at"c://tomcat/descriptor/webanalysis.xml") tells me that 
there's something wrong with the descriptor.  Look in 
'uimaj-examples/src/main/descriptors/analysis_engine' and compare any of 
those valid descriptors to the one you're trying to load (webanalysis.xml).


-Matt


vijay vijay wrote:
> Hi Matthew,
>
>                      how are u? actually i thought u will reply to my
> posting, i have one really big thing which is made me to stop.i have put
> that across Adam now,similar posting i am sending it for u i hope u will
> solve my problem.
>
>                  as Adam said i have downloded the xalan.jar and adde it as
> an external jar.it is working .it is is giving output  in console like this
>  @@Processing file inpit.txt
> uima.tcas.DocumentAnnotation
> "vijay,michale,uima,who are these?"
> sofa = uima.cas.Sofa
> sofaNum = 1
> sofaID = "_InitialView"
> mimeType = "text"
> sofaArray = null
> sofaString = "vijay,michale,uima,who are these?"
> sofaURI = null
> begin = 0
> end = 33
> language = "x-unspecified"
> com.iton.uima.TestType
> "who"
> sofa = uima.cas.Sofa                                 //here i have passed
> vijay,michale,uima as conigaration parameter but it does't read?
> sofaNum = 1                                            //why it happend like
> this? here i got "who" this came from where we mention the name of the
> sofaID = "_InitialView"                              //class in
> webanalysis.xml...
> mimeType = "text"
> sofaArray = null
> sofaString = "vijay,michale,uima,who are these?"
> sofaURI = null
> begin = 19
> end = 22
> TestType = "who"@@    And main problem is i am not getting in IEBrowser i
> have given it as like thishttp://localhost:8000//UIMAWeb/servlet/Test
> here i got error saying "com.ibm.uima.util.InvalidXMLException".invalid
> descriptor file at"c://tomcat/descriptor/webanalysis.xml".i have tried in
> google but didn't get relevent ones.
>
> if u want to use this as web application wht are thing we have to do
> i will explain u what i have done tell me wether it is wright wya or
> not........
>
> in servlt i have put "example application" as main class,descritor,input and
> out put in webroot,then i have deployed it in tomact.i got the above error.
>
> i hope u will get it what iam asking for.........
> i have 2 problems here 1)is regarding configarationparameter.2) how to write
> in web application
>
>
> vijay
>
>
>
>
>
> On 9/14/07, Matthew Campbell <mc...@syrres.com> wrote:
>   
>> Vijay:
>>
>>    "System.err.println()" only displays that message in the console
>> telling you how to run the java application.  Usage statements are
>> common in Java console programs, since they tell you how to use a new
>> program and what arguments should be passed to it when you don't invoke
>> it correctly.  It looks like you have the right *idea*, but you don't
>> put those directories into the System.err call (that would just print
>> them out on the console with the message) - you pass them on the command
>> line.  In Eclipse, you can pass them by clicking Run >> Open Run Dialog,
>> making sure the ExampleApplication is selected as your main class, and
>> adding the three paths (the analysis engine descriptor, input directory,
>> and output directory) to the Program Arguments box in the Arguments
>> tab.  Make sure to surround each argument/directory with double-quotes
>> if they have spaces in them (it doesn't appear so in your example code
>> here).
>>    As for the error about missing ")", you've sort of butchered the
>> quotation marks in that System.err call.  Eclipse should be syntax
>> highlighting that for you, so you should be able to work out when the
>> string is closed with the correct quotation mark and when it isn't.  I
>> would just change it back to the way it was though and save yourself
>> some time.
>>    These aren't really UIMA errors, though, but fundamental Java ones,
>> so I don't know if this is really the place to discuss them (Sun's Java
>> forums may be better suited to some of the general Java questions).
>> Walk through the code of the ExampleApplication starting from the main()
>> method.  If there are things you don't understand or are giving you
>> errors when you run it, do a quick google search to see if other folks
>> have had the same problem.  Make a decent effort to debug on your own,
>> and then come back if you're up against a wall.
>>
>>    Sidestepping to your question about regular expressions, their used
>> to match patterns in strings, and I'm sure you'll find them very useful
>> both inside and outside of UIMA.  I find the website
>> http://www.regular-expressions.info/ very helpful when reading up on the
>> subject, but again, Google is your friend.
>>
>>
>> -Matt
>>
>> vijay vijay wrote:
>>     
>>> Hi adam,
>>>
>>>
>>>               at last i found the java class,so i just added that class
>>>       
>> to
>>     
>>> my project wrote as a java
>>>  class,there i am getting an lke this
>>>
>>>  Usage: java com.ibm.uima.example.ExampleApplication <TAE descriptor or
>>>       
>> TEAR
>>     
>>> file name> <input dir> <output dir>""
>>>
>>> actually i have tried this when i am doing my first example i got the
>>>       
>> same
>>     
>>> error .now i have given here like this
>>>
>>>
>>> System.*err*.println("Usage: java
>>>       
>> com.ibm.uima.example.ExampleApplication "+
>>     
>>> "<AnalysisEngine.xml> +
>>>       
>> <D:"\"eclipse\vijay\workspace\exampleApplication\input>
>>     
>>> <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
>>> i am getting an error like this
>>>
>>> "Syntax error, insert ")" to complete MethodInvocation".
>>> i have tried not my best.
>>>
>>> AND my aim also develop full fleged compnent to search for unstructured
>>> data,my people want to use this as search tool in their project.this one
>>>       
>> is
>>     
>>> ultimate goal.
>>>
>>> i don't how far i am going to suceed in this but i want give my best
>>>       
>> with ur
>>     
>>> support.......
>>>
>>> vijay
>>>
>>>
>>> On 9/13/07, Adam Lally <al...@alum.rpi.edu> wrote:
>>>
>>>
>>>
>>>       
>>>> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
>>>>
>>>>         
>>>>> Hi  Adam Lally ,
>>>>>
>>>>>                            as per ur code below i have tried
>>>>>
>>>>>
>>>>> analysisEngine.setConfigParameterValue("StringsToAnnotate",
>>>>>  new String[] {"Michael","UIMA","Vijay",....}); but it is
>>>>> giving anerror like analysisEngine cannot be resolved. i am attching
>>>>>           
>> the
>>     
>>>>> class what i wrote.
>>>>>
>>>>>
>>>>>           
>>>> Vijay,
>>>>
>>>> The setConfigParameterValue call does not go in the annotator.  It
>>>> goes in your main program.  The idea is that the main program sets the
>>>> configuration parameter values before calling the annotator.  It
>>>> wouldn't make any sense for the annotator code to set its own
>>>> configuration parameter values, then it might as well just hardcode
>>>> the values it was searching for!
>>>>
>>>> Did you look at ExampleApplication.java yet?  You asked how to write a
>>>> Main program, and you were on the right track with that.  In
>>>> ExampleApplication.java's main method you have this line of code:
>>>>
>>>>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine
>>>>         
>> (specifier);
>>     
>>>> And you would put after it:
>>>>
>>>> ae.setConfigParameterValue("StringsToAnnotate", new String[]
>>>> {"Michael","UIMA","Vijay"});
>>>>
>>>> Regards,
>>>> -Adam
>>>>
>>>>
>>>>         
>>>       
>
>   

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi Matthew,

                     how are u? actually i thought u will reply to my
posting, i have one really big thing which is made me to stop.i have put
that across Adam now,similar posting i am sending it for u i hope u will
solve my problem.

                 as Adam said i have downloded the xalan.jar and adde it as
an external jar.it is working .it is is giving output  in console like this
 @@Processing file inpit.txt
uima.tcas.DocumentAnnotation
"vijay,michale,uima,who are these?"
sofa = uima.cas.Sofa
sofaNum = 1
sofaID = "_InitialView"
mimeType = "text"
sofaArray = null
sofaString = "vijay,michale,uima,who are these?"
sofaURI = null
begin = 0
end = 33
language = "x-unspecified"
com.iton.uima.TestType
"who"
sofa = uima.cas.Sofa                                 //here i have passed
vijay,michale,uima as conigaration parameter but it does't read?
sofaNum = 1                                            //why it happend like
this? here i got "who" this came from where we mention the name of the
sofaID = "_InitialView"                              //class in
webanalysis.xml...
mimeType = "text"
sofaArray = null
sofaString = "vijay,michale,uima,who are these?"
sofaURI = null
begin = 19
end = 22
TestType = "who"@@    And main problem is i am not getting in IEBrowser i
have given it as like thishttp://localhost:8000//UIMAWeb/servlet/Test
here i got error saying "com.ibm.uima.util.InvalidXMLException".invalid
descriptor file at"c://tomcat/descriptor/webanalysis.xml".i have tried in
google but didn't get relevent ones.

if u want to use this as web application wht are thing we have to do
i will explain u what i have done tell me wether it is wright wya or
not........

in servlt i have put "example application" as main class,descritor,input and
out put in webroot,then i have deployed it in tomact.i got the above error.

i hope u will get it what iam asking for.........
i have 2 problems here 1)is regarding configarationparameter.2) how to write
in web application


vijay





On 9/14/07, Matthew Campbell <mc...@syrres.com> wrote:
>
> Vijay:
>
>    "System.err.println()" only displays that message in the console
> telling you how to run the java application.  Usage statements are
> common in Java console programs, since they tell you how to use a new
> program and what arguments should be passed to it when you don't invoke
> it correctly.  It looks like you have the right *idea*, but you don't
> put those directories into the System.err call (that would just print
> them out on the console with the message) - you pass them on the command
> line.  In Eclipse, you can pass them by clicking Run >> Open Run Dialog,
> making sure the ExampleApplication is selected as your main class, and
> adding the three paths (the analysis engine descriptor, input directory,
> and output directory) to the Program Arguments box in the Arguments
> tab.  Make sure to surround each argument/directory with double-quotes
> if they have spaces in them (it doesn't appear so in your example code
> here).
>    As for the error about missing ")", you've sort of butchered the
> quotation marks in that System.err call.  Eclipse should be syntax
> highlighting that for you, so you should be able to work out when the
> string is closed with the correct quotation mark and when it isn't.  I
> would just change it back to the way it was though and save yourself
> some time.
>    These aren't really UIMA errors, though, but fundamental Java ones,
> so I don't know if this is really the place to discuss them (Sun's Java
> forums may be better suited to some of the general Java questions).
> Walk through the code of the ExampleApplication starting from the main()
> method.  If there are things you don't understand or are giving you
> errors when you run it, do a quick google search to see if other folks
> have had the same problem.  Make a decent effort to debug on your own,
> and then come back if you're up against a wall.
>
>    Sidestepping to your question about regular expressions, their used
> to match patterns in strings, and I'm sure you'll find them very useful
> both inside and outside of UIMA.  I find the website
> http://www.regular-expressions.info/ very helpful when reading up on the
> subject, but again, Google is your friend.
>
>
> -Matt
>
> vijay vijay wrote:
> > Hi adam,
> >
> >
> >               at last i found the java class,so i just added that class
> to
> > my project wrote as a java
> >  class,there i am getting an lke this
> >
> >  Usage: java com.ibm.uima.example.ExampleApplication <TAE descriptor or
> TEAR
> > file name> <input dir> <output dir>""
> >
> > actually i have tried this when i am doing my first example i got the
> same
> > error .now i have given here like this
> >
> >
> > System.*err*.println("Usage: java
> com.ibm.uima.example.ExampleApplication "+
> > "<AnalysisEngine.xml> +
> <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> > <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> > i am getting an error like this
> >
> > "Syntax error, insert ")" to complete MethodInvocation".
> > i have tried not my best.
> >
> > AND my aim also develop full fleged compnent to search for unstructured
> > data,my people want to use this as search tool in their project.this one
> is
> > ultimate goal.
> >
> > i don't how far i am going to suceed in this but i want give my best
> with ur
> > support.......
> >
> > vijay
> >
> >
> > On 9/13/07, Adam Lally <al...@alum.rpi.edu> wrote:
> >
> >
> >
> >> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
> >>
> >>> Hi  Adam Lally ,
> >>>
> >>>                            as per ur code below i have tried
> >>>
> >>>
> >>> analysisEngine.setConfigParameterValue("StringsToAnnotate",
> >>>  new String[] {"Michael","UIMA","Vijay",....}); but it is
> >>> giving anerror like analysisEngine cannot be resolved. i am attching
> the
> >>> class what i wrote.
> >>>
> >>>
> >> Vijay,
> >>
> >> The setConfigParameterValue call does not go in the annotator.  It
> >> goes in your main program.  The idea is that the main program sets the
> >> configuration parameter values before calling the annotator.  It
> >> wouldn't make any sense for the annotator code to set its own
> >> configuration parameter values, then it might as well just hardcode
> >> the values it was searching for!
> >>
> >> Did you look at ExampleApplication.java yet?  You asked how to write a
> >> Main program, and you were on the right track with that.  In
> >> ExampleApplication.java's main method you have this line of code:
> >>
> >>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine
> (specifier);
> >>
> >> And you would put after it:
> >>
> >> ae.setConfigParameterValue("StringsToAnnotate", new String[]
> >> {"Michael","UIMA","Vijay"});
> >>
> >> Regards,
> >> -Adam
> >>
> >>
> >
> >
>

Re: UIMA Source Code

Posted by Matthew Campbell <mc...@syrres.com>.
Vijay:

    "System.err.println()" only displays that message in the console 
telling you how to run the java application.  Usage statements are 
common in Java console programs, since they tell you how to use a new 
program and what arguments should be passed to it when you don't invoke 
it correctly.  It looks like you have the right *idea*, but you don't 
put those directories into the System.err call (that would just print 
them out on the console with the message) - you pass them on the command 
line.  In Eclipse, you can pass them by clicking Run >> Open Run Dialog, 
making sure the ExampleApplication is selected as your main class, and 
adding the three paths (the analysis engine descriptor, input directory, 
and output directory) to the Program Arguments box in the Arguments 
tab.  Make sure to surround each argument/directory with double-quotes 
if they have spaces in them (it doesn't appear so in your example code 
here).
    As for the error about missing ")", you've sort of butchered the 
quotation marks in that System.err call.  Eclipse should be syntax 
highlighting that for you, so you should be able to work out when the 
string is closed with the correct quotation mark and when it isn't.  I 
would just change it back to the way it was though and save yourself 
some time.
    These aren't really UIMA errors, though, but fundamental Java ones, 
so I don't know if this is really the place to discuss them (Sun's Java 
forums may be better suited to some of the general Java questions).  
Walk through the code of the ExampleApplication starting from the main() 
method.  If there are things you don't understand or are giving you 
errors when you run it, do a quick google search to see if other folks 
have had the same problem.  Make a decent effort to debug on your own, 
and then come back if you're up against a wall.

    Sidestepping to your question about regular expressions, their used 
to match patterns in strings, and I'm sure you'll find them very useful 
both inside and outside of UIMA.  I find the website 
http://www.regular-expressions.info/ very helpful when reading up on the 
subject, but again, Google is your friend.


-Matt

vijay vijay wrote:
> Hi adam,
>
>
>               at last i found the java class,so i just added that class to
> my project wrote as a java
>  class,there i am getting an lke this
>
>  Usage: java com.ibm.uima.example.ExampleApplication <TAE descriptor or TEAR
> file name> <input dir> <output dir>""
>
> actually i have tried this when i am doing my first example i got the same
> error .now i have given here like this
>
>
> System.*err*.println("Usage: java com.ibm.uima.example.ExampleApplication "+
> "<AnalysisEngine.xml> + <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> i am getting an error like this
>
> "Syntax error, insert ")" to complete MethodInvocation".
> i have tried not my best.
>
> AND my aim also develop full fleged compnent to search for unstructured
> data,my people want to use this as search tool in their project.this one is
> ultimate goal.
>
> i don't how far i am going to suceed in this but i want give my best with ur
> support.......
>
> vijay
>
>
> On 9/13/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
>
>   
>> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
>>     
>>> Hi  Adam Lally ,
>>>
>>>                            as per ur code below i have tried
>>>
>>>
>>> analysisEngine.setConfigParameterValue("StringsToAnnotate",
>>>  new String[] {"Michael","UIMA","Vijay",....}); but it is
>>> giving anerror like analysisEngine cannot be resolved. i am attching the
>>> class what i wrote.
>>>
>>>       
>> Vijay,
>>
>> The setConfigParameterValue call does not go in the annotator.  It
>> goes in your main program.  The idea is that the main program sets the
>> configuration parameter values before calling the annotator.  It
>> wouldn't make any sense for the annotator code to set its own
>> configuration parameter values, then it might as well just hardcode
>> the values it was searching for!
>>
>> Did you look at ExampleApplication.java yet?  You asked how to write a
>> Main program, and you were on the right track with that.  In
>> ExampleApplication.java's main method you have this line of code:
>>
>>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);
>>
>> And you would put after it:
>>
>> ae.setConfigParameterValue("StringsToAnnotate", new String[]
>> {"Michael","UIMA","Vijay"});
>>
>> Regards,
>> -Adam
>>
>>     
>
>   

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi adam,
               i have fallowed matthew,got the out put but not the one i
wanted it. here i didget those strings passed as configaration
parameters.sowhat might be the problem

      and i have taken one step futher by  putting this class ias
webapplication.can i do like that.my first goal is some what like this. is
it going to be working?

vijay


On 9/15/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 9/14/07, vijay vijay <vi...@gmail.com> wrote:
> >
> > System.*err*.println("Usage: java
> com.ibm.uima.example.ExampleApplication "+
> > "<AnalysisEngine.xml> +
> <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> > <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> > i am getting an error like this
> >
> > "Syntax error, insert ")" to complete MethodInvocation".
> > i have tried not my best.
> >
>
> As Matthew said, these are basic Java questions.  If you need help
> understanding what System.err.println does and how to fix Java syntax
> errors, I suggest you take a step back from UIMA and spend some time
> going through the Java tutorial:
> http://java.sun.com/docs/books/tutorial/.  Or buy a book on how to
> program in Java.
>
> -Adam
>

Re: UIMA Source Code

Posted by Adam Lally <al...@alum.rpi.edu>.
On 9/14/07, vijay vijay <vi...@gmail.com> wrote:
>
> System.*err*.println("Usage: java com.ibm.uima.example.ExampleApplication "+
> "<AnalysisEngine.xml> + <D:"\"eclipse\vijay\workspace\exampleApplication\input>
> <D:"\"eclipse\vijay\workspace\exampleApplication\output>")
> i am getting an error like this
>
> "Syntax error, insert ")" to complete MethodInvocation".
> i have tried not my best.
>

As Matthew said, these are basic Java questions.  If you need help
understanding what System.err.println does and how to fix Java syntax
errors, I suggest you take a step back from UIMA and spend some time
going through the Java tutorial:
http://java.sun.com/docs/books/tutorial/.  Or buy a book on how to
program in Java.

-Adam

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi adam,


              at last i found the java class,so i just added that class to
my project wrote as a java
 class,there i am getting an lke this

 Usage: java com.ibm.uima.example.ExampleApplication <TAE descriptor or TEAR
file name> <input dir> <output dir>""

actually i have tried this when i am doing my first example i got the same
error .now i have given here like this


System.*err*.println("Usage: java com.ibm.uima.example.ExampleApplication "+
"<AnalysisEngine.xml> + <D:"\"eclipse\vijay\workspace\exampleApplication\input>
<D:"\"eclipse\vijay\workspace\exampleApplication\output>")
i am getting an error like this

"Syntax error, insert ")" to complete MethodInvocation".
i have tried not my best.

AND my aim also develop full fleged compnent to search for unstructured
data,my people want to use this as search tool in their project.this one is
ultimate goal.

i don't how far i am going to suceed in this but i want give my best with ur
support.......

vijay


On 9/13/07, Adam Lally <al...@alum.rpi.edu> wrote:


> On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
> > Hi  Adam Lally ,
> >
> >                            as per ur code below i have tried
> >
> >
> > analysisEngine.setConfigParameterValue("StringsToAnnotate",
> >  new String[] {"Michael","UIMA","Vijay",....}); but it is
> > giving anerror like analysisEngine cannot be resolved. i am attching the
> > class what i wrote.
> >
>
> Vijay,
>
> The setConfigParameterValue call does not go in the annotator.  It
> goes in your main program.  The idea is that the main program sets the
> configuration parameter values before calling the annotator.  It
> wouldn't make any sense for the annotator code to set its own
> configuration parameter values, then it might as well just hardcode
> the values it was searching for!
>
> Did you look at ExampleApplication.java yet?  You asked how to write a
> Main program, and you were on the right track with that.  In
> ExampleApplication.java's main method you have this line of code:
>
>        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);
>
> And you would put after it:
>
> ae.setConfigParameterValue("StringsToAnnotate", new String[]
> {"Michael","UIMA","Vijay"});
>
> Regards,
> -Adam
>

Re: UIMA Source Code

Posted by Adam Lally <al...@alum.rpi.edu>.
On 9/13/07, vijay vijay <vi...@gmail.com> wrote:
> Hi  Adam Lally ,
>
>                            as per ur code below i have tried
>
>
> analysisEngine.setConfigParameterValue("StringsToAnnotate",
>  new String[] {"Michael","UIMA","Vijay",....}); but it is
> giving anerror like analysisEngine cannot be resolved. i am attching the
> class what i wrote.
>

Vijay,

The setConfigParameterValue call does not go in the annotator.  It
goes in your main program.  The idea is that the main program sets the
configuration parameter values before calling the annotator.  It
wouldn't make any sense for the annotator code to set its own
configuration parameter values, then it might as well just hardcode
the values it was searching for!

Did you look at ExampleApplication.java yet?  You asked how to write a
Main program, and you were on the right track with that.  In
ExampleApplication.java's main method you have this line of code:

        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);

And you would put after it:

ae.setConfigParameterValue("StringsToAnnotate", new String[]
{"Michael","UIMA","Vijay"});

Regards,
-Adam

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi  Adam Lally ,

                           as per ur code below i have tried


analysisEngine.setConfigParameterValue("StringsToAnnotate",
 new String[] {"Michael","UIMA","Vijay",....}); but it is giving anerror
like analysisEngine cannot be resolved. i am attching the class what i
wrote.

vijay




On 9/12/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> Vijay,
>
> This message, where you say what you did so far and ask a specific
> question, is a step in the right direction.  So I'm going to try to
> answer your questions.  But if you say "plz give me response" or any
> kind of begging for help one more time I am never responding to any of
> your messages again.  Sorry to be so blunt, but begging for help does
> NOT make us more likely to help you, and you have to stop.  We are all
> busy people and it is very disrespectful to do what you just did and
> send a follow up message after only 3 hours, being upset that Michael
> didn't take time from his day during those particular 3 hours to give
> you a response.
>
> Responses below...
>
> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> > thank u for ur kind response,
> >
> >                      let me tell u exactley where i am
> >
> >                   i have downloded  plugins for eclipse and i have
> wriiten
> > code for analysis engine and java class for annotation where it reads
> two
> > strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
> > sucessfully. i am able get the annotation in document analyzer.
> >
> >                     here i thought insted of hardcoding or sending it as
>
> > parameters Can we pass annotations dynamically? i have put this question
> > acroos forums no replies for it.
> >
>
> You can set a configuration parameter dynamically.  So if your
> annotator has a  multivalued configuration parameter called
> "StringsToAnnotate" of type String, you can set that from your
> application using:
>
> analysisEngine.setConfigParameterValue("StringsToAnnotate",
> new String[] {"Michael","UIMA","Vijay",....});
>
>
> >                    how do u  write main class? in uima...........
> >
>
> Have you looked at ExampleApplication.java?  It is in the UIMA SDK
> example source code
> (examples/src/org/apache/uima/examples/ExampleApplication.java).  It
> shows how you create an AnalysisEngine object from a descriptor, and
> then pass documents to it and read the results.
>
> There's also a detailed discussion of this in the "Application
> Developer's Guide" chapter of the manual.  Here's a link to the online
> documentation: http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application
> .
>
> If you try for a while to get this to work and something is still not
> working, then post a follow up question saying what exactly you tried
> and what exactly is going wrong.  Posting code and any exception
> messages will be very helpful and will encourage people to respond
> more quickly.
>
> >                  i have deployed examples up to collection process
> engine.
> >
> >            I will tell u my aim also i want to send Michale as client
> > request from a jsp page it should be able to get all occurences of
> > michale.how do u achive this?
> >
>
> Get all occurrences of "Michael" from where? Do you have a collection
> of documents that you want to search?
>
> Using the advice I gave above you could create an AnalysisEngine, set
> the StringsToAnnotate parameter to "Michael" and then run it over a
> collection of documents.  But if your collection is of any significant
> size this will take a long time, so you can't expect a user to submit
> a request over the web and sit there waiting for the response.
>
> Typically for search applications using UIMA is that you run your
> annotator off-line and produce an index, which you then search against
> when the user submits a request.  Of course you have to know what
> kinds of things you are looking for ahead of time.
>
> If you're just searching for strings like "Michael" and you don't know
> what they are ahead of time, you might as well just use Google, you
> don't need UIMA for that.
>
> >         thats what i am aiming for,if u suggest me  how to proceed i
> will be
> > thank full to u ,i thinking that u are like guide to me.no one is there
> to
> > help me.i have searched across web so many pdfs but i storgley belive
> that i
> > need some help form some one and that is u ,every thing is in ur hands
> to
> > say yes or no is up to u boss .
> >
> >     i am happy for ur response.once again thank u micahle.
>
> This isn't helping.  You can say "Thank you for your help" once but
> you don't need a whole paragraph plus yet another sentence to say it.
>
> And while I can overlook lots of spelling errors, why don't you seem
> able to type "Michael" correctly?  All you have to do is copy it from
> the previous email!  Not taking the time to spell people's names
> correctly is also not very respectful to people that are taking time
> out of their busy day just to help you out.  And would it kill you to
> capitalize the first letter of sentences and spell out "you" and
> "your"?  This is email, not instant messaging.
>
> Regards,
> -Adam
>

Re: UIMA Source Code

Posted by Adam Lally <al...@alum.rpi.edu>.
Vijay,

This message, where you say what you did so far and ask a specific
question, is a step in the right direction.  So I'm going to try to
answer your questions.  But if you say "plz give me response" or any
kind of begging for help one more time I am never responding to any of
your messages again.  Sorry to be so blunt, but begging for help does
NOT make us more likely to help you, and you have to stop.  We are all
busy people and it is very disrespectful to do what you just did and
send a follow up message after only 3 hours, being upset that Michael
didn't take time from his day during those particular 3 hours to give
you a response.

Responses below...

On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> thank u for ur kind response,
>
>                      let me tell u exactley where i am
>
>                   i have downloded  plugins for eclipse and i have wriiten
> code for analysis engine and java class for annotation where it reads two
> strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
> sucessfully. i am able get the annotation in document analyzer.
>
>                     here i thought insted of hardcoding or sending it as
> parameters Can we pass annotations dynamically? i have put this question
> acroos forums no replies for it.
>

You can set a configuration parameter dynamically.  So if your
annotator has a  multivalued configuration parameter called
"StringsToAnnotate" of type String, you can set that from your
application using:

analysisEngine.setConfigParameterValue("StringsToAnnotate",
  new String[] {"Michael","UIMA","Vijay",....});


>                    how do u  write main class? in uima...........
>

Have you looked at ExampleApplication.java?  It is in the UIMA SDK
example source code
(examples/src/org/apache/uima/examples/ExampleApplication.java).  It
shows how you create an AnalysisEngine object from a descriptor, and
then pass documents to it and read the results.

There's also a detailed discussion of this in the "Application
Developer's Guide" chapter of the manual.  Here's a link to the online
documentation: http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.

If you try for a while to get this to work and something is still not
working, then post a follow up question saying what exactly you tried
and what exactly is going wrong.  Posting code and any exception
messages will be very helpful and will encourage people to respond
more quickly.

>                  i have deployed examples up to collection process engine.
>
>            I will tell u my aim also i want to send Michale as client
> request from a jsp page it should be able to get all occurences of
> michale.how do u achive this?
>

Get all occurrences of "Michael" from where? Do you have a collection
of documents that you want to search?

Using the advice I gave above you could create an AnalysisEngine, set
the StringsToAnnotate parameter to "Michael" and then run it over a
collection of documents.  But if your collection is of any significant
size this will take a long time, so you can't expect a user to submit
a request over the web and sit there waiting for the response.

Typically for search applications using UIMA is that you run your
annotator off-line and produce an index, which you then search against
when the user submits a request.  Of course you have to know what
kinds of things you are looking for ahead of time.

If you're just searching for strings like "Michael" and you don't know
what they are ahead of time, you might as well just use Google, you
don't need UIMA for that.

>         thats what i am aiming for,if u suggest me  how to proceed i will be
> thank full to u ,i thinking that u are like guide to me.no one is there to
> help me.i have searched across web so many pdfs but i storgley belive that i
> need some help form some one and that is u ,every thing is in ur hands to
> say yes or no is up to u boss .
>
>     i am happy for ur response.once again thank u micahle.

This isn't helping.  You can say "Thank you for your help" once but
you don't need a whole paragraph plus yet another sentence to say it.

And while I can overlook lots of spelling errors, why don't you seem
able to type "Michael" correctly?  All you have to do is copy it from
the previous email!  Not taking the time to spell people's names
correctly is also not very respectful to people that are taking time
out of their busy day just to help you out.  And would it kill you to
capitalize the first letter of sentences and spell out "you" and
"your"?  This is email, not instant messaging.

Regards,
-Adam

Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
thank u for ur kind response,

                     let me tell u exactley where i am

                  i have downloded  plugins for eclipse and i have wriiten
code for analysis engine and java class for annotation where it reads two
strings like "MICHAEL,UIMA" in bunch of input txtxfiles.I have done it
sucessfully. i am able get the annotation in document analyzer.

                    here i thought insted of hardcoding or sending it as
parameters Can we pass annotations dynamically? i have put this question
acroos forums no replies for it.

                   how do u  write main class? in uima...........

                 i have deployed examples up to collection process engine.

           I will tell u my aim also i want to send Michale as client
request from a jsp page it should be able to get all occurences of
michale.how do u achive this?

        thats what i am aiming for,if u suggest me  how to proceed i will be
thank full to u ,i thinking that u are like guide to me.no one is there to
help me.i have searched across web so many pdfs but i storgley belive that i
need some help form some one and that is u ,every thing is in ur hands to
say yes or no is up to u boss .

    i am happy for ur response.once again thank u micahle.
bye
vijay


On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Start reading the Apache UIMA documentation if you want to work with
> Apache UIMA. I think
> UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.
>
> The Apache UIMA documentation is available at:
> http://incubator.apache.org/uima/documentation.html
>
> You want to find some entities in text documents? What kind of entities?
> Look at the UIMA sandbox maybe there
> are some components that can help you.
>
> -- Michael
>
> vijay vijay wrote:
> > Hi Michael
> >                      PLz something personal........spend ur valuable
> time
> > for me.....
> >                     i have staterd study on this Uima 3 weeks back till
> now
> > i have not gained anything from it.i have loged many forums where i have
> not
> > any response.i think i might disturbing u with my stupid mails.
> >
> >                  i need some guidence for u,i would like to how to
> approch
> > to my problem?
> > i want to search for text in  my local files using this uima concept.
> till
> > now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
> >
> >                    once again sorry to ask u like this.if some one gives
> me
> > a fair idea abt this hoe to proceed i will be the most happeist.
> >
> > vijay
> >
> >
> >
> >
> > On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> >> Hi Vijay,
> >>
> >> this has nothing to do with UIMA 2.2 Class Loader so please do not use
> >> this topic for positing!!
> >>
> >> http://incubator.apache.org/uima/svn.html
> >>
> >> -- Michael
> >>
> >> vijay vijay wrote:
> >>
> >>> Hi guys,
> >>>
> >>>                     where can i get source code for this Uima.my basic
> >>>
> >> aim
> >>
> >>> is to search for text in local folders.can any one suugest
> >>> me.plzzzzzzzz......
> >>>
> >>> vijay
> >>>
> >>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> >>>
> >>>
> >>>> Hi Michael,
> >>>>                   the link which u have provided is very
> inresting.socan
> >>>> u send me links which are usefull to the a fresher to this topic
> >>>>
> >>>> plz spare ur valuable time for few mins waiting for ue reply.
> >>>> vijay
> >>>>
> >>>>
> >>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>>>
> >>>>
> >>>>> Are your primitive engines available as PEAR files? That is needed
> >>>>>
> >> since
> >>
> >>>>> only if you have them as PEAR files
> >>>>> you can use the PEAR descriptor.
> >>>>>
> >>>>> After you have installed the PEAR files a PEAR descriptor is
> >>>>> automatically generated (located in the install directory). This
> >>>>> descriptor have to
> >>>>> be used in the aggregate to refer to the primitive AEs.
> >>>>>
> >>>>> -- Michael
> >>>>>
> >>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>
> >>>>>
> >>>>>> Thanks Marshall for the information and for asking :)
> >>>>>>
> >>>>>> What I have tried is that I have a description of an aggregate
> >>>>>>
> >>>>>>
> >>>>> analysis
> >>>>>
> >>>>>
> >>>>>> engine which has 4 primitive analysis engine defined. Those
> primitive
> >>>>>>
> >>>>>>
> >>>>> AE
> >>>>>
> >>>>>
> >>>>>> descriptions are all fully defined (no imports) under the
> >>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> >>>>>>
> >>>>>>
> >>>>> because
> >>>>>
> >>>>>
> >>>>>> those primitive AE descriptions are generated on the fly. For one
> >>>>>>
> >>>>>>
> >>>>> thing,
> >>>>>
> >>>>>
> >>>>>> each primitive AE has its own PEAR-compliant directory. In this
> case,
> >>>>>>
> >>>>>>
> >>>>> I
> >>>>>
> >>>>>
> >>>>>> could not figure out how to tell UIMA the location those
> directories.
> >>>>>>
> >>>>>> Excerpt from section 5.8 in the UIMA References page:
> >>>>>> "As of version 2.2, the framework supports component descriptors
> >>>>>>
> >> which
> >>
> >>>>> are
> >>>>>
> >>>>>
> >>>>>> PEAR descriptors. These descriptors define components plus include
> >>>>>> information on the class path needed to run them."
> >>>>>> Question: To get the individual class loader for each primitive AE
> >>>>>>
> >>>>>>
> >>>>> defined
> >>>>>
> >>>>>
> >>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> >>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> >>>>>>
> >> where
> >>
> >>>>> and
> >>>>>
> >>>>>
> >>>>>> how to do it?
> >>>>>>
> >>>>>> Any comments/recommendations would be appreciated.
> >>>>>>
> >>>>>> Thanks,
> >>>>>> Danai Wiriyayanyongsuk
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>>>> descriptors, which include the class path information.
> >>>>>>>
> >>>>>>> This should allow you to run a pipeline where each annotator could
> >>>>>>>
> >>>>>>>
> >>>>> have
> >>>>>
> >>>>>
> >>>>>>> different versions of classes.
> >>>>>>> See
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >>>>>>> Is that what you're trying to do?
> >>>>>>>
> >>>>>>> -Marshall
> >>>>>>>
> >>>>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi Guys,
> >>>>>>>>
> >>>>>>>> I'd like to ask a couple of questions regarding the classloader
> in
> >>>>>>>>
> >>>>>>>>
> >>>>> UIMA
> >>>>>
> >>>>>
> >>>>>>> 2.2.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>>>
> >>>>>>>>
> >>>>> different
> >>>>>
> >>>>>
> >>>>>>> class
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> loaders for each aggregated primitive analysis engines, so that
> the
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> classes
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> won't interfere each others?
> >>>>>>>>
> >>>>>>>> If there is so, could you please shed some light how to do it?
> I've
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> looked
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> into the source code and documentation but no luck :(
> >>>>>>>>
> >>>>>>>> Many Thanks,
> >>>>>>>> Danai Wiriyayanyongsuk
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>
> >>
> >
> >
>
>

Re: UIMA Source Code

Posted by Michael Baessler <mb...@michael-baessler.de>.
Start reading the Apache UIMA documentation if you want to work with 
Apache UIMA. I think
UIMA_SDK_USER__GUIDE.pdf.is IBM UIMA.

The Apache UIMA documentation is available at: 
http://incubator.apache.org/uima/documentation.html

You want to find some entities in text documents? What kind of entities? 
Look at the UIMA sandbox maybe there
are some components that can help you.

-- Michael

vijay vijay wrote:
> Hi Michael
>                      PLz something personal........spend ur valuable time
> for me.....
>                     i have staterd study on this Uima 3 weeks back till now
> i have not gained anything from it.i have loged many forums where i have not
> any response.i think i might disturbing u with my stupid mails.
>
>                  i need some guidence for u,i would like to how to approch
> to my problem?
> i want to search for text in  my local files using this uima concept. till
> now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.
>
>                    once again sorry to ask u like this.if some one gives me
> a fair idea abt this hoe to proceed i will be the most happeist.
>
> vijay
>
>
>
>
> On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>   
>> Hi Vijay,
>>
>> this has nothing to do with UIMA 2.2 Class Loader so please do not use
>> this topic for positing!!
>>
>> http://incubator.apache.org/uima/svn.html
>>
>> -- Michael
>>
>> vijay vijay wrote:
>>     
>>> Hi guys,
>>>
>>>                     where can i get source code for this Uima.my basic
>>>       
>> aim
>>     
>>> is to search for text in local folders.can any one suugest
>>> me.plzzzzzzzz......
>>>
>>> vijay
>>>
>>> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>>>
>>>       
>>>> Hi Michael,
>>>>                   the link which u have provided is very inresting.socan
>>>> u send me links which are usefull to the a fresher to this topic
>>>>
>>>> plz spare ur valuable time for few mins waiting for ue reply.
>>>> vijay
>>>>
>>>>
>>>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>>>
>>>>         
>>>>> Are your primitive engines available as PEAR files? That is needed
>>>>>           
>> since
>>     
>>>>> only if you have them as PEAR files
>>>>> you can use the PEAR descriptor.
>>>>>
>>>>> After you have installed the PEAR files a PEAR descriptor is
>>>>> automatically generated (located in the install directory). This
>>>>> descriptor have to
>>>>> be used in the aggregate to refer to the primitive AEs.
>>>>>
>>>>> -- Michael
>>>>>
>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>
>>>>>           
>>>>>> Thanks Marshall for the information and for asking :)
>>>>>>
>>>>>> What I have tried is that I have a description of an aggregate
>>>>>>
>>>>>>             
>>>>> analysis
>>>>>
>>>>>           
>>>>>> engine which has 4 primitive analysis engine defined. Those primitive
>>>>>>
>>>>>>             
>>>>> AE
>>>>>
>>>>>           
>>>>>> descriptions are all fully defined (no imports) under the
>>>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
>>>>>>
>>>>>>             
>>>>> because
>>>>>
>>>>>           
>>>>>> those primitive AE descriptions are generated on the fly. For one
>>>>>>
>>>>>>             
>>>>> thing,
>>>>>
>>>>>           
>>>>>> each primitive AE has its own PEAR-compliant directory. In this case,
>>>>>>
>>>>>>             
>>>>> I
>>>>>
>>>>>           
>>>>>> could not figure out how to tell UIMA the location those directories.
>>>>>>
>>>>>> Excerpt from section 5.8 in the UIMA References page:
>>>>>> "As of version 2.2, the framework supports component descriptors
>>>>>>             
>> which
>>     
>>>>> are
>>>>>
>>>>>           
>>>>>> PEAR descriptors. These descriptors define components plus include
>>>>>> information on the class path needed to run them."
>>>>>> Question: To get the individual class loader for each primitive AE
>>>>>>
>>>>>>             
>>>>> defined
>>>>>
>>>>>           
>>>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
>>>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
>>>>>>             
>> where
>>     
>>>>> and
>>>>>
>>>>>           
>>>>>> how to do it?
>>>>>>
>>>>>> Any comments/recommendations would be appreciated.
>>>>>>
>>>>>> Thanks,
>>>>>> Danai Wiriyayanyongsuk
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>>>> descriptors, which include the class path information.
>>>>>>>
>>>>>>> This should allow you to run a pipeline where each annotator could
>>>>>>>
>>>>>>>               
>>>>> have
>>>>>
>>>>>           
>>>>>>> different versions of classes.
>>>>>>> See
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>     
>>>>>>> Is that what you're trying to do?
>>>>>>>
>>>>>>> -Marshall
>>>>>>>
>>>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> Hi Guys,
>>>>>>>>
>>>>>>>> I'd like to ask a couple of questions regarding the classloader in
>>>>>>>>
>>>>>>>>                 
>>>>> UIMA
>>>>>
>>>>>           
>>>>>>> 2.2.
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>>>
>>>>>>>>                 
>>>>> different
>>>>>
>>>>>           
>>>>>>> class
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> loaders for each aggregated primitive analysis engines, so that the
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>> classes
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> won't interfere each others?
>>>>>>>>
>>>>>>>> If there is so, could you please shed some light how to do it? I've
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>> looked
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> into the source code and documentation but no luck :(
>>>>>>>>
>>>>>>>> Many Thanks,
>>>>>>>> Danai Wiriyayanyongsuk
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>       
>>     
>
>   


Re: UIMA Source Code

Posted by vijay vijay <vi...@gmail.com>.
Hi Michael
                     PLz something personal........spend ur valuable time
for me.....
                    i have staterd study on this Uima 3 weeks back till now
i have not gained anything from it.i have loged many forums where i have not
any response.i think i might disturbing u with my stupid mails.

                 i need some guidence for u,i would like to how to approch
to my problem?
i want to search for text in  my local files using this uima concept. till
now i have gone through chap 5 in UINA_SDK_USER__GUIDE.pdf.

                   once again sorry to ask u like this.if some one gives me
a fair idea abt this hoe to proceed i will be the most happeist.

vijay




On 9/12/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Hi Vijay,
>
> this has nothing to do with UIMA 2.2 Class Loader so please do not use
> this topic for positing!!
>
> http://incubator.apache.org/uima/svn.html
>
> -- Michael
>
> vijay vijay wrote:
> > Hi guys,
> >
> >                     where can i get source code for this Uima.my basic
> aim
> > is to search for text in local folders.can any one suugest
> > me.plzzzzzzzz......
> >
> > vijay
> >
> > On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
> >
> >> Hi Michael,
> >>                   the link which u have provided is very inresting.socan
> >> u send me links which are usefull to the a fresher to this topic
> >>
> >> plz spare ur valuable time for few mins waiting for ue reply.
> >> vijay
> >>
> >>
> >> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >>
> >>> Are your primitive engines available as PEAR files? That is needed
> since
> >>> only if you have them as PEAR files
> >>> you can use the PEAR descriptor.
> >>>
> >>> After you have installed the PEAR files a PEAR descriptor is
> >>> automatically generated (located in the install directory). This
> >>> descriptor have to
> >>> be used in the aggregate to refer to the primitive AEs.
> >>>
> >>> -- Michael
> >>>
> >>> Danai Wiriyayanyongsuk wrote:
> >>>
> >>>> Thanks Marshall for the information and for asking :)
> >>>>
> >>>> What I have tried is that I have a description of an aggregate
> >>>>
> >>> analysis
> >>>
> >>>> engine which has 4 primitive analysis engine defined. Those primitive
> >>>>
> >>> AE
> >>>
> >>>> descriptions are all fully defined (no imports) under the
> >>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> >>>>
> >>> because
> >>>
> >>>> those primitive AE descriptions are generated on the fly. For one
> >>>>
> >>> thing,
> >>>
> >>>> each primitive AE has its own PEAR-compliant directory. In this case,
> >>>>
> >>> I
> >>>
> >>>> could not figure out how to tell UIMA the location those directories.
> >>>>
> >>>> Excerpt from section 5.8 in the UIMA References page:
> >>>> "As of version 2.2, the framework supports component descriptors
> which
> >>>>
> >>> are
> >>>
> >>>> PEAR descriptors. These descriptors define components plus include
> >>>> information on the class path needed to run them."
> >>>> Question: To get the individual class loader for each primitive AE
> >>>>
> >>> defined
> >>>
> >>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
> >>>> (<componentID>_pear.xml?) for each of every primitive AE? If so,
> where
> >>>>
> >>> and
> >>>
> >>>> how to do it?
> >>>>
> >>>> Any comments/recommendations would be appreciated.
> >>>>
> >>>> Thanks,
> >>>> Danai Wiriyayanyongsuk
> >>>>
> >>>>
> >>>>
> >>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >>>>
> >>>>
> >>>>> Version 2.2 includes support for aggregates composed of PEAR
> >>>>> descriptors, which include the class path information.
> >>>>>
> >>>>> This should allow you to run a pipeline where each annotator could
> >>>>>
> >>> have
> >>>
> >>>>> different versions of classes.
> >>>>> See
> >>>>>
> >>>>>
> >>>>>
> >>>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>>
> >>>>> Is that what you're trying to do?
> >>>>>
> >>>>> -Marshall
> >>>>>
> >>>>> Danai Wiriyayanyongsuk wrote:
> >>>>>
> >>>>>
> >>>>>> Hi Guys,
> >>>>>>
> >>>>>> I'd like to ask a couple of questions regarding the classloader in
> >>>>>>
> >>> UIMA
> >>>
> >>>>> 2.2.
> >>>>>
> >>>>>
> >>>>>> For an aggregate analysis engine, is there a way to have/set
> >>>>>>
> >>> different
> >>>
> >>>>> class
> >>>>>
> >>>>>
> >>>>>> loaders for each aggregated primitive analysis engines, so that the
> >>>>>>
> >>>>>>
> >>>>> classes
> >>>>>
> >>>>>
> >>>>>> won't interfere each others?
> >>>>>>
> >>>>>> If there is so, could you please shed some light how to do it? I've
> >>>>>>
> >>>>>>
> >>>>> looked
> >>>>>
> >>>>>
> >>>>>> into the source code and documentation but no luck :(
> >>>>>>
> >>>>>> Many Thanks,
> >>>>>> Danai Wiriyayanyongsuk
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>
> >
> >
>
>

UIMA Source Code

Posted by Michael Baessler <mb...@michael-baessler.de>.
Hi Vijay,

this has nothing to do with UIMA 2.2 Class Loader so please do not use 
this topic for positing!!

http://incubator.apache.org/uima/svn.html

-- Michael

vijay vijay wrote:
> Hi guys,
>
>                     where can i get source code for this Uima.my basic aim
> is to search for text in local folders.can any one suugest
> me.plzzzzzzzz......
>
> vijay
>
> On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>   
>> Hi Michael,
>>                   the link which u have provided is very inresting.so can
>> u send me links which are usefull to the a fresher to this topic
>>
>> plz spare ur valuable time for few mins waiting for ue reply.
>> vijay
>>
>>
>> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>>     
>>> Are your primitive engines available as PEAR files? That is needed since
>>> only if you have them as PEAR files
>>> you can use the PEAR descriptor.
>>>
>>> After you have installed the PEAR files a PEAR descriptor is
>>> automatically generated (located in the install directory). This
>>> descriptor have to
>>> be used in the aggregate to refer to the primitive AEs.
>>>
>>> -- Michael
>>>
>>> Danai Wiriyayanyongsuk wrote:
>>>       
>>>> Thanks Marshall for the information and for asking :)
>>>>
>>>> What I have tried is that I have a description of an aggregate
>>>>         
>>> analysis
>>>       
>>>> engine which has 4 primitive analysis engine defined. Those primitive
>>>>         
>>> AE
>>>       
>>>> descriptions are all fully defined (no imports) under the
>>>> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
>>>>         
>>> because
>>>       
>>>> those primitive AE descriptions are generated on the fly. For one
>>>>         
>>> thing,
>>>       
>>>> each primitive AE has its own PEAR-compliant directory. In this case,
>>>>         
>>> I
>>>       
>>>> could not figure out how to tell UIMA the location those directories.
>>>>
>>>> Excerpt from section 5.8 in the UIMA References page:
>>>> "As of version 2.2, the framework supports component descriptors which
>>>>         
>>> are
>>>       
>>>> PEAR descriptors. These descriptors define components plus include
>>>> information on the class path needed to run them."
>>>> Question: To get the individual class loader for each primitive AE
>>>>         
>>> defined
>>>       
>>>> in an aggregate AE, do we have to specify/map the PEAR descriptor
>>>> (<componentID>_pear.xml?) for each of every primitive AE? If so, where
>>>>         
>>> and
>>>       
>>>> how to do it?
>>>>
>>>> Any comments/recommendations would be appreciated.
>>>>
>>>> Thanks,
>>>> Danai Wiriyayanyongsuk
>>>>
>>>>
>>>>
>>>> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>>>>
>>>>         
>>>>> Version 2.2 includes support for aggregates composed of PEAR
>>>>> descriptors, which include the class path information.
>>>>>
>>>>> This should allow you to run a pipeline where each annotator could
>>>>>           
>>> have
>>>       
>>>>> different versions of classes.
>>>>> See
>>>>>
>>>>>
>>>>>           
>>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>>       
>>>>> Is that what you're trying to do?
>>>>>
>>>>> -Marshall
>>>>>
>>>>> Danai Wiriyayanyongsuk wrote:
>>>>>
>>>>>           
>>>>>> Hi Guys,
>>>>>>
>>>>>> I'd like to ask a couple of questions regarding the classloader in
>>>>>>             
>>> UIMA
>>>       
>>>>> 2.2.
>>>>>
>>>>>           
>>>>>> For an aggregate analysis engine, is there a way to have/set
>>>>>>             
>>> different
>>>       
>>>>> class
>>>>>
>>>>>           
>>>>>> loaders for each aggregated primitive analysis engines, so that the
>>>>>>
>>>>>>             
>>>>> classes
>>>>>
>>>>>           
>>>>>> won't interfere each others?
>>>>>>
>>>>>> If there is so, could you please shed some light how to do it? I've
>>>>>>
>>>>>>             
>>>>> looked
>>>>>
>>>>>           
>>>>>> into the source code and documentation but no luck :(
>>>>>>
>>>>>> Many Thanks,
>>>>>> Danai Wiriyayanyongsuk
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>         
>>>       
>
>   


Re: UIMA 2.2 Class Loader

Posted by vijay vijay <vi...@gmail.com>.
Hi guys,

                    where can i get source code for this Uima.my basic aim
is to search for text in local folders.can any one suugest
me.plzzzzzzzz......

vijay

On 9/12/07, vijay vijay <vi...@gmail.com> wrote:
>
> Hi Michael,
>                   the link which u have provided is very inresting.so can
> u send me links which are usefull to the a fresher to this topic
>
> plz spare ur valuable time for few mins waiting for ue reply.
> vijay
>
>
> On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
> >
> > Are your primitive engines available as PEAR files? That is needed since
> > only if you have them as PEAR files
> > you can use the PEAR descriptor.
> >
> > After you have installed the PEAR files a PEAR descriptor is
> > automatically generated (located in the install directory). This
> > descriptor have to
> > be used in the aggregate to refer to the primitive AEs.
> >
> > -- Michael
> >
> > Danai Wiriyayanyongsuk wrote:
> > > Thanks Marshall for the information and for asking :)
> > >
> > > What I have tried is that I have a description of an aggregate
> > analysis
> > > engine which has 4 primitive analysis engine defined. Those primitive
> > AE
> > > descriptions are all fully defined (no imports) under the
> > > "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> > because
> > > those primitive AE descriptions are generated on the fly. For one
> > thing,
> > > each primitive AE has its own PEAR-compliant directory. In this case,
> > I
> > > could not figure out how to tell UIMA the location those directories.
> > >
> > > Excerpt from section 5.8 in the UIMA References page:
> > > "As of version 2.2, the framework supports component descriptors which
> > are
> > > PEAR descriptors. These descriptors define components plus include
> > > information on the class path needed to run them."
> > > Question: To get the individual class loader for each primitive AE
> > defined
> > > in an aggregate AE, do we have to specify/map the PEAR descriptor
> > > (<componentID>_pear.xml?) for each of every primitive AE? If so, where
> > and
> > > how to do it?
> > >
> > > Any comments/recommendations would be appreciated.
> > >
> > > Thanks,
> > > Danai Wiriyayanyongsuk
> > >
> > >
> > >
> > > On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> > >
> > >> Version 2.2 includes support for aggregates composed of PEAR
> > >> descriptors, which include the class path information.
> > >>
> > >> This should allow you to run a pipeline where each annotator could
> > have
> > >> different versions of classes.
> > >> See
> > >>
> > >>
> > http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> > >>
> > >> Is that what you're trying to do?
> > >>
> > >> -Marshall
> > >>
> > >> Danai Wiriyayanyongsuk wrote:
> > >>
> > >>> Hi Guys,
> > >>>
> > >>> I'd like to ask a couple of questions regarding the classloader in
> > UIMA
> > >>>
> > >> 2.2.
> > >>
> > >>> For an aggregate analysis engine, is there a way to have/set
> > different
> > >>>
> > >> class
> > >>
> > >>> loaders for each aggregated primitive analysis engines, so that the
> > >>>
> > >> classes
> > >>
> > >>> won't interfere each others?
> > >>>
> > >>> If there is so, could you please shed some light how to do it? I've
> > >>>
> > >> looked
> > >>
> > >>> into the source code and documentation but no luck :(
> > >>>
> > >>> Many Thanks,
> > >>> Danai Wiriyayanyongsuk
> > >>>
> > >>>
> > >>>
> > >>
> > >
> > >
> >
> >
>

Re: UIMA 2.2 Class Loader

Posted by vijay vijay <vi...@gmail.com>.
Hi Michael,
                  the link which u have provided is very inresting.so can u
send me links which are usefull to the a fresher to this topic

plz spare ur valuable time for few mins waiting for ue reply.
vijay


On 8/30/07, Michael Baessler <mb...@michael-baessler.de> wrote:
>
> Are your primitive engines available as PEAR files? That is needed since
> only if you have them as PEAR files
> you can use the PEAR descriptor.
>
> After you have installed the PEAR files a PEAR descriptor is
> automatically generated (located in the install directory). This
> descriptor have to
> be used in the aggregate to refer to the primitive AEs.
>
> -- Michael
>
> Danai Wiriyayanyongsuk wrote:
> > Thanks Marshall for the information and for asking :)
> >
> > What I have tried is that I have a description of an aggregate analysis
> > engine which has 4 primitive analysis engine defined. Those primitive AE
> > descriptions are all fully defined (no imports) under the
> > "delegateAnalysisEngine/analysisEngineDescription" tag. I do this
> because
> > those primitive AE descriptions are generated on the fly. For one thing,
> > each primitive AE has its own PEAR-compliant directory. In this case, I
> > could not figure out how to tell UIMA the location those directories.
> >
> > Excerpt from section 5.8 in the UIMA References page:
> > "As of version 2.2, the framework supports component descriptors which
> are
> > PEAR descriptors. These descriptors define components plus include
> > information on the class path needed to run them."
> > Question: To get the individual class loader for each primitive AE
> defined
> > in an aggregate AE, do we have to specify/map the PEAR descriptor
> > (<componentID>_pear.xml?) for each of every primitive AE? If so, where
> and
> > how to do it?
> >
> > Any comments/recommendations would be appreciated.
> >
> > Thanks,
> > Danai Wiriyayanyongsuk
> >
> >
> >
> > On 8/29/07, Marshall Schor < msa@schor.com> wrote:
> >
> >> Version 2.2 includes support for aggregates composed of PEAR
> >> descriptors, which include the class path information.
> >>
> >> This should allow you to run a pipeline where each annotator could have
> >> different versions of classes.
> >> See
> >>
> >>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
> >>
> >> Is that what you're trying to do?
> >>
> >> -Marshall
> >>
> >> Danai Wiriyayanyongsuk wrote:
> >>
> >>> Hi Guys,
> >>>
> >>> I'd like to ask a couple of questions regarding the classloader in
> UIMA
> >>>
> >> 2.2.
> >>
> >>> For an aggregate analysis engine, is there a way to have/set different
> >>>
> >> class
> >>
> >>> loaders for each aggregated primitive analysis engines, so that the
> >>>
> >> classes
> >>
> >>> won't interfere each others?
> >>>
> >>> If there is so, could you please shed some light how to do it? I've
> >>>
> >> looked
> >>
> >>> into the source code and documentation but no luck :(
> >>>
> >>> Many Thanks,
> >>> Danai Wiriyayanyongsuk
> >>>
> >>>
> >>>
> >>
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by Michael Baessler <mb...@michael-baessler.de>.
Are your primitive engines available as PEAR files? That is needed since 
only if you have them as PEAR files
you can use the PEAR descriptor.

After you have installed the PEAR files a PEAR descriptor is 
automatically generated (located in the install directory). This 
descriptor have to
be used in the aggregate to refer to the primitive AEs.

-- Michael

Danai Wiriyayanyongsuk wrote:
> Thanks Marshall for the information and for asking :)
>
> What I have tried is that I have a description of an aggregate analysis
> engine which has 4 primitive analysis engine defined. Those primitive AE
> descriptions are all fully defined (no imports) under the
> "delegateAnalysisEngine/analysisEngineDescription" tag. I do this because
> those primitive AE descriptions are generated on the fly. For one thing,
> each primitive AE has its own PEAR-compliant directory. In this case, I
> could not figure out how to tell UIMA the location those directories.
>
> Excerpt from section 5.8 in the UIMA References page:
> "As of version 2.2, the framework supports component descriptors which are
> PEAR descriptors. These descriptors define components plus include
> information on the class path needed to run them."
> Question: To get the individual class loader for each primitive AE defined
> in an aggregate AE, do we have to specify/map the PEAR descriptor
> (<componentID>_pear.xml?) for each of every primitive AE? If so, where and
> how to do it?
>
> Any comments/recommendations would be appreciated.
>
> Thanks,
> Danai Wiriyayanyongsuk
>
>
>
> On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>   
>> Version 2.2 includes support for aggregates composed of PEAR
>> descriptors, which include the class path information.
>>
>> This should allow you to run a pipeline where each annotator could have
>> different versions of classes.
>> See
>>
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>>
>> Is that what you're trying to do?
>>
>> -Marshall
>>
>> Danai Wiriyayanyongsuk wrote:
>>     
>>> Hi Guys,
>>>
>>> I'd like to ask a couple of questions regarding the classloader in UIMA
>>>       
>> 2.2.
>>     
>>> For an aggregate analysis engine, is there a way to have/set different
>>>       
>> class
>>     
>>> loaders for each aggregated primitive analysis engines, so that the
>>>       
>> classes
>>     
>>> won't interfere each others?
>>>
>>> If there is so, could you please shed some light how to do it? I've
>>>       
>> looked
>>     
>>> into the source code and documentation but no luck :(
>>>
>>> Many Thanks,
>>> Danai Wiriyayanyongsuk
>>>
>>>
>>>       
>>     
>
>   


Re: UIMA 2.2 Class Loader

Posted by Danai Wiriyayanyongsuk <da...@gmail.com>.
Thanks Marshall for the information and for asking :)

What I have tried is that I have a description of an aggregate analysis
engine which has 4 primitive analysis engine defined. Those primitive AE
descriptions are all fully defined (no imports) under the
"delegateAnalysisEngine/analysisEngineDescription" tag. I do this because
those primitive AE descriptions are generated on the fly. For one thing,
each primitive AE has its own PEAR-compliant directory. In this case, I
could not figure out how to tell UIMA the location those directories.

Excerpt from section 5.8 in the UIMA References page:
"As of version 2.2, the framework supports component descriptors which are
PEAR descriptors. These descriptors define components plus include
information on the class path needed to run them."
Question: To get the individual class loader for each primitive AE defined
in an aggregate AE, do we have to specify/map the PEAR descriptor
(<componentID>_pear.xml?) for each of every primitive AE? If so, where and
how to do it?

Any comments/recommendations would be appreciated.

Thanks,
Danai Wiriyayanyongsuk



On 8/29/07, Marshall Schor < msa@schor.com> wrote:
>
> Version 2.2 includes support for aggregates composed of PEAR
> descriptors, which include the class path information.
>
> This should allow you to run a pipeline where each annotator could have
> different versions of classes.
> See
>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support
>
> Is that what you're trying to do?
>
> -Marshall
>
> Danai Wiriyayanyongsuk wrote:
> > Hi Guys,
> >
> > I'd like to ask a couple of questions regarding the classloader in UIMA
> 2.2.
> >
> >
> > For an aggregate analysis engine, is there a way to have/set different
> class
> > loaders for each aggregated primitive analysis engines, so that the
> classes
> > won't interfere each others?
> >
> > If there is so, could you please shed some light how to do it? I've
> looked
> > into the source code and documentation but no luck :(
> >
> > Many Thanks,
> > Danai Wiriyayanyongsuk
> >
> >
>
>

Re: UIMA 2.2 Class Loader

Posted by Marshall Schor <ms...@schor.com>.
Version 2.2 includes support for aggregates composed of PEAR
descriptors, which include the class path information.

This should allow you to run a pipeline where each annotator could have
different versions of classes. 
See
http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.jcas.pear_support

Is that what you're trying to do?

-Marshall

Danai Wiriyayanyongsuk wrote:
> Hi Guys,
>
> I'd like to ask a couple of questions regarding the classloader in UIMA 2.2.
>
>
> For an aggregate analysis engine, is there a way to have/set different class
> loaders for each aggregated primitive analysis engines, so that the classes
> won't interfere each others?
>
> If there is so, could you please shed some light how to do it? I've looked
> into the source code and documentation but no luck :(
>
> Many Thanks,
> Danai Wiriyayanyongsuk
>
>