uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl (JIRA) <...@uima.apache.org>
Subject [jira] [Resolved] (UIMA-4484) Ruta: improve usage as helper lib in java code similar to the uimaFIT helper classes
Date Thu, 14 Jan 2016 15:21:39 GMT

     [ https://issues.apache.org/jira/browse/UIMA-4484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Klügl resolved UIMA-4484.
-------------------------------
    Resolution: Fixed

fixed. New methods:
List<Annotation> select(JCas jcas, String rule, Object... configurationData)
boolean matches(JCas jcas, String rule, Object... configurationData)
... both support annotation injection by addresses, e.g., with this method:
String inject(String script, Annotation... annotations)


> Ruta: improve usage as helper lib in java code similar to the uimaFIT helper classes
> ------------------------------------------------------------------------------------
>
>                 Key: UIMA-4484
>                 URL: https://issues.apache.org/jira/browse/UIMA-4484
>             Project: UIMA
>          Issue Type: New Feature
>          Components: ruta
>    Affects Versions: 2.3.0ruta
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>             Fix For: 2.4.0ruta
>
>
> Some extensions to the Ruta class could be helpful. Here are some inital thoughts:
> // returns the spans where the rules of the script have been applied
> List<AnnotationFS> result = Ruta.select(CAS cas, String script);
> // returns the spans where the "amount" last rules of the script have been applied
> List<AnnotationFS> result = Ruta.selectLast(CAS cas, String script, int amount);
> // returns annotations that have been created by the rules of the script
> List<clazz> result = Ruta.select(JCas cas, String script, Class clazz);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message