[ 
https://issues.apache.org/jira/browse/UIMA-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14186675#comment-14186675
 ] 

Peter Klügl commented on UIMA-4062:
-----------------------------------

Yes, this should be implemented (I think we had the same need sometime). An 
interface with reflection would probably be the solution with less work. 
However, an external resource would probably the better way to implement it 
enabling the dictionaries to be shared between analysis engines in a more 
straightforward fashion. 

Are there any opinions which implementation should be done?

The wordlists are of great need of refactoring since functionality was added to 
them without a having a look at the big picture. I could implement it with 
reflection right now for the next release, and then change it to external 
resources with the needed refactoring some time.

For any solution, we need some more specification how the ruta engine and the 
environment can handle different implementations, e.g, a mapping from file 
extensions to implementations as configuration parameters?

Btw, if you want to contribute some code, you are very welcome :-)

> 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)

Reply via email to