Hi william
it is isgiving an erro r like this when try to do that
The method getJFSIndexRepository() is undefined for the type CAS.
thats why i asked u can u provide me code for me what u are telling me.
vijay
On 9/24/07, vijay vijay <[EMAIL PROTECTED]> wrote:
>
> Hi william,
> can u tell me how to write code for what u said.
>
> vijay
>
> On 9/22/07, J. William Murdock <[EMAIL PROTECTED] > wrote:
> >
> > vijay vijay wrote:
> > > HI
> > > i am getting an error like this "The method
> > > getJFSIndexRepository() is undefined for the type CAS""
> > > here i have imported JFSIndexRepository also.
> > > i have given codew like this
> > >
> > > JFSIndexRepository indexes = aCAS.getJFSIndexRepository();
> > >
> > > FSIndex roomNumberIndex = indexes.getAnnotationIndex(TestType.*type*);
> > >
> > >
> >
> > The getJFSIndexRepository method is defined on a JCas, not a CAS. So
> > one way to accomplish this is to call getJCas() from the aCAS object,
> > and then to call getJFSIndexRepository on the JCas object. There are
> > other ways (e.g., to call getIndexRepository on the CAS and then use
> > FSIndexRepository API) but they seem more complicated to me.
> >
> > --
> > Bill Murdock, PhD
> > UIMA User (but not a UIMA developer or official spokesperson)
> > IBM Watson Research Center
> > 19 Skyline Dr., Hawthorne, NY 10532 USA
> > http://bill.murdocks.org
> >
> >
> >
>