You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Mario Juric <mj...@unsilo.com> on 2017/01/04 18:34:50 UTC
How to setup custom feature index with uimaFIT
Hi,
I am playing with the use of some custom feature index in UIMA, but I wonder if someone could point me to some documentation or examples on how to work with this programmatically. We use uimaFIT to programmatically setup our pipelines, but the custom index needs to be defined in the XML descriptor metadata, and I like to know how I can include this with uimaFIT.
Best,
Mario
Re: How to setup custom feature index with uimaFIT
Posted by Richard Eckart de Castilho <re...@apache.org>.
On 04.01.2017, at 21:06, Mario Juric <mj...@unsilo.ai> wrote:
>
> So I simply declare my index definition XMLs in the same way types are declared with uimaFIT, but I didn’t make this connection from the documentation, although a reference to the fsindexes.txt is shown in the POM of chapter 9 :-)
I have added a mini-section on this to the uimaFIT documentation. Will be included with the next release.
Cheers,
-- Richard
Re: How to setup custom feature index with uimaFIT
Posted by Mario Juric <mj...@unsilo.ai>.
Thanks Richard,
So I simply declare my index definition XMLs in the same way types are declared with uimaFIT, but I didn’t make this connection from the documentation, although a reference to the fsindexes.txt is shown in the POM of chapter 9 :-)
Best,
Mario
> On 04 Jan 2017, at 19:50 , Richard Eckart de Castilho <re...@apache.org> wrote:
>
> On 04.01.2017, at 19:34, Mario Juric <mj...@unsilo.com> wrote:
>>
>> I am playing with the use of some custom feature index in UIMA, but I wonder if someone could point me to some documentation or examples on how to work with this programmatically. We use uimaFIT to programmatically setup our pipelines, but the custom index needs to be defined in the XML descriptor metadata, and I like to know how I can include this with uimaFIT.
>
> uimaFIT has a FsIndexFactory and a TypePrioritiesFactory that provide similar functionality
> as the TypeSystemDescriptionFactory including scanning the classpath automatically for
> index and priorities declarations.
>
> The process to make indexes and priorities auto-detectable is the same as for type systems [1].
> Just the files are called differently:
>
> - type systems: META-INF/org.apache.uima.fit/types.txt
> - type priorities: META-INF/org.apache.uima.fit/typepriorities.txt
> - index definitions: META-INF/org.apache.uima.fit/fsindexes.txt
>
> Cheers,
>
> -- Richard
>
> [1] https://uima.apache.org/d/uimafit-current/tools.uimafit.book.html#ugr.tools.uimafit.typesystem
Re: How to setup custom feature index with uimaFIT
Posted by Richard Eckart de Castilho <re...@apache.org>.
On 04.01.2017, at 19:34, Mario Juric <mj...@unsilo.com> wrote:
>
> I am playing with the use of some custom feature index in UIMA, but I wonder if someone could point me to some documentation or examples on how to work with this programmatically. We use uimaFIT to programmatically setup our pipelines, but the custom index needs to be defined in the XML descriptor metadata, and I like to know how I can include this with uimaFIT.
uimaFIT has a FsIndexFactory and a TypePrioritiesFactory that provide similar functionality
as the TypeSystemDescriptionFactory including scanning the classpath automatically for
index and priorities declarations.
The process to make indexes and priorities auto-detectable is the same as for type systems [1].
Just the files are called differently:
- type systems: META-INF/org.apache.uima.fit/types.txt
- type priorities: META-INF/org.apache.uima.fit/typepriorities.txt
- index definitions: META-INF/org.apache.uima.fit/fsindexes.txt
Cheers,
-- Richard
[1] https://uima.apache.org/d/uimafit-current/tools.uimafit.book.html#ugr.tools.uimafit.typesystem