uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piyush Paliwal <piyushpaliwa...@gmail.com>
Subject Re: UIMA Ruta into jar?
Date Wed, 22 Oct 2014 22:39:52 GMT
Hi Alexandre,

This is more or less clear. However, as the main issue, as I earlier
pointed out, the script even if I put now in java project, it fails to
import additional annotations from external typesystem. This importing was
successfully done when script was inside ruta project.

As an example, I wish to import the following types from TypeSystem.xml
descriptor which also resides in same folder as script (both files now in
Java project).

//import the additional annotations types and alias in short name

IMPORT de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.NN FROM
uima.ruta.example.TypeSystem  AS _NN;

IMPORT de.tudarmstadt.ukp.dkpro.core.api.syntax.type.constituent.PP FROM
uima.ruta.example.TypeSystem AS _PP;

If I wish to declare any annotation which does not depend on imported
types, then there are no errors even if script is in Java.

DECLARE Annotation A(String y,String x);

But how to allow script imports the above annotations from external type
system, if put in java?

- Piyush

On Wed, Oct 22, 2014 at 4:50 PM, Alexandre Patry <alex@nlpfu.com> wrote:

> Hi Piyush,
> A while ago, I wrote a blog post on how to package a RUTA script with
> maven:
> http://textjuicer.com/blog/2013/09/08/using-ruta-in-a-maven-project/
> Even if you do not use maven, it should give you an idea on the files to
> distribute in your jars.
> Hope this help,
> Alexandre
> On 14-10-22 07:35 AM, Piyush Paliwal wrote:
>> Hi,
>> we are developing one Ruta Project and want to access it in java project.
>> Currently what we did is to add the descriptor (generated from ruta
>> script)
>> into UIMA pipeline which is in java project.
>> The pipeline can only be run on workspace, we are not able to make a
>> single
>> jar of that java project and run on command line because it can not access
>> Ruta project as dependency.
>> There is also a direct way to read ruta script within java, but the script
>> can not import annotations from type systems if we put in java project
>> (i.e. it needs Ruta editor).
>> Any way to add Ruta project dependency into java?
>> Thanks.
>> Piyush

Piyush Paliwal

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message