Oops, by mistake I included a link to very old uima documentation. Sorry
about that. The Java Docs can be found here:

https://uima.apache.org/d/uimaj-current/apidocs/index.html

Looks for UimaFramework and produceCollectionReader(...)

-jerry

On Wed, Feb 22, 2017 at 1:40 PM, Jaroslaw Cwiklik <uim...@gmail.com> wrote:

> Not sure if this is the best way to do it but can you first instantiate
> and initialize your CR and plug it in to the CPM? Something like this:
>
>        Map additionalParams = new HashMap();
>
>       additionalParams.put("object1", object1);
>
>      BaseCollectionReader colreader = (BaseCollectionReader)
>   UIMAFramework.produceResource(resourceSpecifier, additionalParams);
>
> And than use an instance of BaseCPMImpl to call
>
>   public void setCollectionReader(BaseCollectionReader aCollectionReader)
> {
>
>
> Check documentation for details:
> https://uima.apache.org/downloads/releaseDocs/2.3.0-
> incubating/docs/api/org/apache/uima/UIMAFramework.html
>
> -jerry
>
>
> On Wed, Feb 22, 2017 at 2:44 AM, Prerna Bhatia <prerna.i...@gmail.com>
> wrote:
>
>> Hi All,
>>
>> At the time of initialization of the CPE, I am passing list of objects to
>> CPE. I want these objects to be used by collection reader to prepare the
>> documents and run AAE on it. How can this be done?
>>
>> Thanks in advance,
>> Prerna
>>
>
>

Reply via email to