Just read the javadoc duh, and warning about the AnalysisEngine.reconfigure method. Which I am guessing should do the trick. ~g
_______________ Girish Chavan, MSIS Department of Biomedical Informatics (DBMI) University of Pittsburgh -----Original Message----- From: Chavan, Girish [mailto:[email protected]] Sent: Monday, July 20, 2009 2:37 PM To: [email protected] Subject: changing configuration parameters programatically Hi All, I want to be able to change the configuration parameters programmatically before the analysis engine is run and I am wondering where in the creation and running of the AE is the best place to do this. Will the following work? AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier); ae.setConfigParameterValue("URI",http://yahoo.com); ... ...Place ae in CPM ... Cpm.process(); thanks _______________ Girish Chavan, MSIS Department of Biomedical Informatics (DBMI) University of Pittsburgh UPMC Cancer Pavilion, 302D 5150 Centre Avenue Pittsburgh, PA 15232 Office: 412-623-4084 Email: [email protected]
