Re: programmatically setting parameters on CpeCasProcessor objects

2012-05-10 Thread Andrew Fast
I've had the same problem. Here is what has worked for me: 1) Create a blank ConfigurationParameterSettings object using the CPE factory: CasProcessorConfigurationParameterSettings settings = CpeDescriptorFactory.produceCasProcessorConfigurationParameterSettings(); 2) Set your

Re: programmatically setting parameters on CpeCasProcessor objects

2012-02-23 Thread Jaroslaw Cwiklik
Seems like a bug, as a workaround can you try the following: mCPE = UIMAFramework.produceCollectionProcessingEngine(); ConfigurationParameterSettings settings = mCPE.getCollectionReader().getProcessingResourceMetaData().getConfigurationParameterSettings(); You should be able to change

programmatically setting parameters on CpeCasProcessor objects

2012-02-22 Thread Joel Dubbels
I'm trying to launch a collection reader programmatically (from java) and am able to do the following: 1. instantiate a CpeDescription object from a descriptor file 2. get all the collection readers for that CpeDescription using the getAllCollectionCollectionReaders() method 3. for each reader,