[
https://issues.apache.org/jira/browse/UIMA-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14186686#comment-14186686
]
Silvestre Losada Alonso edited comment on UIMA-4062 at 10/28/14 10:52 AM:
--------------------------------------------------------------------------
Thanks Peter.
Of course I'm able to contribute. I only need to know how the implementation
should be made. I'm not sure about reflection will be the easiest way to
implement it I have a question here. how the class that implements RutaTable or
RutaList has to be passed to RutaEnvironment? In order to do that the grammar
should be changed. Declare a wordtable should be something like this
{quote}
WORDTABLE(org.apache.uima.ruta.resources.MyWordTable) wordTableDatabase =
"databaseconection"
{quote}
Using external resource grammar will be the same once the external resource is
declared is asigned to WORDTABLE
{quote}
WORDTABLE wordTableDatabase = "externalResourceKey"
{quote}
was (Author: silvestrelosada):
Thanks Peter.
Of course I'm able to contribute. I only need to know how the implementation
should be made. I'm not sure about reflection will be the easiest way to
implement it I have a question here. how the class that implements RutaTable or
RutaList has to be passed to RutaEnvironment? In order to do that the grammar
should be changed. Declare a wordtable should be something like this
{quote}
WORDTABLE(org.apache.uima.ruta.resources.MyWordTable) wordTableDatabase =
"databaseconection"
{quote}
> Plugable external resources on UIMA RUTA
> ----------------------------------------
>
> Key: UIMA-4062
> URL: https://issues.apache.org/jira/browse/UIMA-4062
> Project: UIMA
> Issue Type: Improvement
> Components: ruta
> Affects Versions: 2.2.1ruta
> Reporter: Silvestre Losada Alonso
> Assignee: Peter Klügl
> Labels: enhancement, uima
> Fix For: 2.2.2ruta
>
>
> Currently UIMA ruta has WORDLIST and WORDTABLE, it is a list or table of text
> items that can used to detect occurrences. This is nice feature and very
> powerfull, however there is no way to plug my own WORDLIST/WORDTABLE
> implementation, for example WORDLIST that find matches in database table or
> in lucene index etc...
> I think that the WORDLIST/WORTABLE implementation can be defined as UIMA
> external resource, in resources section, and then pass a reference to
> WORDLIST/WORDTABLE in ruta script. The other option is to specify the class
> that implements WORDLIST/WORDTABLE to RutaEnvionment and instantiate it in
> ruta environment using Reflection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)