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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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







Reply via email to