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 <[email protected]>
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