You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Ahmed Abdeen Hamed <ah...@gmail.com> on 2009/08/07 08:48:58 UTC

Has anyone used JRuby for UIMA?

Hello,
We have a need in my team to use JRuby to access UIMA API's. However, due to
the UIMA generated type systems, I am unable to use the API's. Is there a
way that I can bypass the type system generation process and use more
generic type that is part of the API's?

Please let me know if you have any answers for me.

Thanks!
Ahmed

Re: Has anyone used JRuby for UIMA?

Posted by Eddie Epstein <ea...@gmail.com>.
> Hi Thilo,
> This looks very promising actually. Are you saying that I don't need JCasGen
> to generate the type systems and I can do that as demonstrated in the
> examples?
Right, JCas is an optional interface to the CAS.

>
> Here is what I am trying to get to run: In the uimaj-examples application,
> folder ex1 there is a NumberAnnotator.xml that refers to TypeSytem
> org.apache.uima.tutorial.Number. This assume that I have to generate this
> type using JCasGen so when the NumberAnnotator AE is called it finds the
> Number TypeSystem. In JRuby I don't have the luxury of using JCasGen to
> generate the TypeSystems. If I can point the AE to a more generic built-in
> system then I don't have to worry about the JCasGen process. This is what I
> meant "bypassing" the generation process.
>
> This is what I am trying to do. I am attaching a JRuby example so that you
> have an idea what I am trying to do.
Mail attachments not delivered to this list. Just include the relevant
lines of code in an email.

Eddie

Re: Has anyone used JRuby for UIMA?

Posted by Ahmed Abdeen Hamed <ah...@gmail.com>.
Hi Thilo,
This looks very promising actually. Are you saying that I don't need JCasGen
to generate the type systems and I can do that as demonstrated in the
examples?

Here is what I am trying to get to run: In the uimaj-examples application,
folder ex1 there is a NumberAnnotator.xml that refers to TypeSytem
org.apache.uima.tutorial.Number. This assume that I have to generate this
type using JCasGen so when the NumberAnnotator AE is called it finds the
Number TypeSystem. In JRuby I don't have the luxury of using JCasGen to
generate the TypeSystems. If I can point the AE to a more generic built-in
system then I don't have to worry about the JCasGen process. This is what I
meant "bypassing" the generation process.

This is what I am trying to do. I am attaching a JRuby example so that you
have an idea what I am trying to do.
Thank you very much,
Ahmed




On Fri, Aug 7, 2009 at 3:59 AM, Thilo Goetz <tw...@gmx.de> wrote:

> Ahmed Abdeen Hamed wrote:
> > Hello,
> > We have a need in my team to use JRuby to access UIMA API's. However, due
> to
> > the UIMA generated type systems, I am unable to use the API's. Is there a
> > way that I can bypass the type system generation process and use more
> > generic type that is part of the API's?
> >
> > Please let me know if you have any answers for me.
> >
> > Thanks!
> > Ahmed
> >
>
> I think you're saying you can't use JCas for some reason, correct?  See
> if this helps:
>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.cas.overview
> This is Section 4.2 in the UIMA References.  Also see the example code
> in section 4.4.2.  If this is not what you were looking for, please
> give more details.
>
> --Thilo
>
>


-- 
PhD Student of Computer Science
University of Vermont

Re: Has anyone used JRuby for UIMA?

Posted by Thilo Goetz <tw...@gmx.de>.
Ahmed Abdeen Hamed wrote:
> Hello,
> We have a need in my team to use JRuby to access UIMA API's. However, due to
> the UIMA generated type systems, I am unable to use the API's. Is there a
> way that I can bypass the type system generation process and use more
> generic type that is part of the API's?
> 
> Please let me know if you have any answers for me.
> 
> Thanks!
> Ahmed
> 

I think you're saying you can't use JCas for some reason, correct?  See
if this helps:
http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.cas.overview
This is Section 4.2 in the UIMA References.  Also see the example code
in section 4.4.2.  If this is not what you were looking for, please
give more details.

--Thilo