i have started 5 days back with this concept,yesterday i ran that example
yes it similar to that example.now i want to search the same content from
multiple input files.could plz send me some pdfs or codes which can be
usefull to me

thank u
vijay


On 8/30/07, LeHouillier, Frank D. <[EMAIL PROTECTED]> wrote:
>
> What specifically isn't made clear from the UIMA Tutorial and
> Developers' Guides?  The example with the Room numbers in chapter 1 does
> something similar to your code below but it is parameterized for
> allowing different patterns other than "who".
>
> -----Original Message-----
> From: vijay vijay [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 30, 2007 5:15 AM
> To: [email protected]
> Subject: Re: yes
>
> yes
>
>            i do,apart from that i need to mention the
> parameter,parametersettings,capabilities in xml files also.from that u
> know
> where i am .can u guide me to build  from here
>
> vijay
>
>
> On 8/30/07, Thilo Goetz <[EMAIL PROTECTED]> wrote:
> >
> > Ok, I can see what you're doing.  Now where do you want
> > to go from there?  You can apply this annotator to
> > several files with the DocumentAnalyzer, is that what
> > you mean?
> >
> > --Thilo
> >
> > vijay vijay wrote:
> > > *
> > > Hi  here i am forwarding my java class.
> > >
> > > package* com.iton.uima.annotator;
> > >
> > > *
> > >
> > > import* java.util.regex.Matcher;
> > > *
> > >
> > > import* java.util.regex.Pattern;
> > >
> > > *
> > >
> > > import* com.ibm.uima.analysis_component.JCasAnnotator_ImplBase;
> > > *
> > >
> > > import* com.ibm.uima.analysis_engine.AnalysisEngineProcessException;
> > > *
> > >
> > > import* com.ibm.uima.jcas.impl.JCas;
> > > *
> > >
> > > import* com.iton.uima.TestType;
> > >
> > > *
> > >
> > > public* *class* TestAnnotator *extends* JCasAnnotator_ImplBase
> > >
> > > {
> > >
> > > Pattern testPat = Pattern.*compile*("who");
> > >
> > > @Override
> > >
> > > *public* *void* process(JCas jCas) *throws*
> > AnalysisEngineProcessException {
> > >
> > > String docText = jCas.getDocumentText();
> > >
> > > Matcher testMatch = testPat.matcher(docText);
> > >
> > > *int* index = 0;
> > >
> > > *while*(testMatch.find(index))
> > >
> > > {
> > >
> > > TestType testType = *new* TestType(jCas);
> > >
> > > testType.setBegin(testMatch.start());
> > >
> > > testType.setEnd(testMatch.end());
> > >
> > > testType.setTestFeature("TestFeature");
> > >
> > > testType.addToIndexes();
> > >
> > > index = testMatch.end();
> > >
> > > }
> > >
> > > }
> > >
> > > }
> > >
> > >
> > > On 8/30/07, Thilo Goetz <[EMAIL PROTECTED]> wrote:
> > >> Your Java code might be helpful.  I'm not really
> > >> sure what it is you are trying to achieve.
> > >>
> > >> --Thilo
> > >>
> > >> vijay vijay wrote:
> > >>>  HI
> > >>>
> > >>>              i  am new to this concept.After down loading
> > >> UIMA_SDK_USR_GUIDE
> > >>> the pdf file i have run one example.in that example i have
> mentioned
> > >>> Parrtern is "hi",which is hardcoded.i have put that in text
> file,then
> > i
> > >> have
> > >>> run the document analyzer and i got result.Now i want to look for
> same
> > >> "HI"
> > >>> to be searched from multiple files.so can u plz guide me.if u want
> > iwill
> > >>> send my java class file to u.
> > >>>
> > >>> vijay
> > >>>
> > >
> >
>

Reply via email to