You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by vijay vijay <vi...@gmail.com> on 2007/09/22 09:04:18 UTC
The method getJFSIndexRepository() is undefined for the type CAS
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*);
can any one guide me
vijay
Re: The method getJFSIndexRepository() is undefined for the type CAS
Posted by vijay vijay <vi...@gmail.com>.
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 <vi...@gmail.com> wrote:
>
> Hi william,
> can u tell me how to write code for what u said.
>
> vijay
>
> On 9/22/07, J. William Murdock <bill@murdocks.org > 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
> >
> >
> >
>
Re: The method getJFSIndexRepository() is undefined for the type CAS
Posted by vijay vijay <vi...@gmail.com>.
Hi william,
can u tell me how to write code for what u said.
vijay
On 9/22/07, J. William Murdock <bi...@murdocks.org> 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
>
>
>
Re: The method getJFSIndexRepository() is undefined for the type
CAS
Posted by "J. William Murdock" <bi...@murdocks.org>.
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