Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
In "UIMA Tutorial and Developer's guide", section 3.3.2 "Configuring a Collection Processing Engine Descriptor Programmatically", the example code contains a repetition of the setActionOnMaxError method call:
//Continue, despite errors and skip bad Cas personTitleProcessor.setActionOnMaxError("terminate"); ... // Define and add CAS Consumer CpeIntegratedCasProcessor consumerProcessor = CpeDescriptorFactory.produceCasProcessor("Printer"); consumerProcessor.setDescriptor([descriptor]); //Define batch size consumerProcessor.setBatchSize(100); //Terminate CPE on max errors personTitleProcessor.setActionOnMaxError("terminate");
The first instance seems wrongly commented, while the second wrongly placed.