sudeep87 / uimafit

Automatically exported from code.google.com/p/uimafit
0 stars 0 forks source link

aggregate collection reader #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I created a class called AggregateCollectionReader for a local project that
I have found useful for my own work.  Someone asked me for this
functionality this morning and so I thought I would offer this class to
uimaFIT if you guys thought it useful/acceptable.  It's a little strange in
that you have to directly instantiate it with a constructor (heaven
forbid!)   There is no way you could describe the resulting collection
reader using a descriptor file or even a CollectionReaderDescription such
that you could reinstantiate it again.  All that to caution that its a
quick and dirty solution that may warrant review before putting it into
uimaFIT.  

I have attached the source code of the class.

Original issue reported on code.google.com by pvogren@gmail.com on 11 May 2010 at 4:36

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I did my own implementation of an aggregate collection reader. I ended up using
configuration parameter groups to configure the individual collection readers, 
i.e.
one group for each sub-reader, which holds all of it's parameters plus one extra
parameter that tells aggregate collection reader which class to instantiate.

There are still some limitations with this; for example, it's not possible to 
use
sub-readers that expect parameters in parameter groups. Also I'm sure I made 
some
assumptions in my implementation that will not always be a given in UIMA 
(though it
does work for now).

One issue is that uimaFIT doesn't support parameter groups, so I had to code 
that
part by hand instead of being able to use uimaFIT methods for instantiating and
configuring the aggregate collection reader programmatically. However, as far 
as I
understand it, it should be possible to instantiate it using a descriptor file.

I'm happy to discuss this further some time, or to go over the code.

Original comment by phwetz...@gmail.com on 17 May 2010 at 8:24

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 18 Mar 2011 at 4:04

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 7 Jan 2013 at 4:51