You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Michael Baessler <mb...@michael-baessler.de> on 2007/09/12 09:17:30 UTC

UIMA Source Code

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 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
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>
> >
> >
>
>