Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.1.1
-
None
Description
Due to a bug in org.apache.ctakes.dependency.parser.ae.ClearNLPSemanticRoleLabelerAE it is not possible to configure it using an XML descriptor file.
Unfortunately the 3 @ConfigurationParameter fields are configure but never read. For example:
@ConfigurationParameter( name = PARAM_PARSER_MODEL_FILE_NAME, ...) private String parserModelFileName;
The field parserModelFileName is then never read again when trying to load the configured file, instead the field this.srlPredUri is checked:
InputStream srlPred = (this.srlPredUri == null) ? FileLocator.getAsStream(DEFAULT_PRED_MODEL_FILE_NAME) : FileLocator.getAsStream(this.srlPredUri.getPath());
Please change the 3 @ConfigurationParameter annotations to be on the fields that are then used to configure the class (similar to how ClearNLPDependencyParserAE is configured.)