[
https://issues.apache.org/jira/browse/UIMA-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262132#comment-14262132
]
Peter Klügl commented on UIMA-4062:
-----------------------------------
Hi,
sorry, I must have missed your comment.
No, that's not possible. You need to resolve the actual value of the
expressions during runtime since it could be a variable which is set just
before the actual statement is applied, and thus its value is not known yet
when it is parsed.
I will take a look into it next week and give you some code snippets for this
problem. Normally, you iterate over the entries of the map and create a new one
by using the getter methods of the expressions.
> 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
> 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)