Change text in reusable pipeline in DKPro
问题 This questions describes how to reuse a pipeline in dkpro but if I only create one JCas and then try to change the text then I get the exception org.apache.uima.cas.CASRuntimeException: Data for Sofa feature setLocalSofaData() has already been set. How do I get around this? 回答1: The sofa data in the CAS can only be set once. It cannot be modified after it has been set. In order to re-use a CAS, call the reset() method on it. This clears all annotations and allows you to set the sofa/text