You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ctakes.apache.org by "Mats Henrikson (JIRA)" <ji...@apache.org> on 2014/05/27 06:24:02 UTC

[jira] [Created] (CTAKES-299) cannot configure ClearNLPSemanticRoleLabelerAE using XML descriptor

Mats Henrikson created CTAKES-299:
-------------------------------------

             Summary: cannot configure ClearNLPSemanticRoleLabelerAE using XML descriptor
                 Key: CTAKES-299
                 URL: https://issues.apache.org/jira/browse/CTAKES-299
             Project: cTAKES
          Issue Type: Bug
          Components: ctakes-dependency-parser
    Affects Versions: 3.1.1
            Reporter: Mats Henrikson


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:

{code:java}
  @ConfigurationParameter(
		  name = PARAM_PARSER_MODEL_FILE_NAME,
		  ...)
  private String parserModelFileName;
{code}

The field {{parserModelFileName}} is then never read again when trying to load the configured file, instead the field {{this.srlPredUri}} is checked:

{code:java}
    	InputStream srlPred = (this.srlPredUri == null)
                ? FileLocator.getAsStream(DEFAULT_PRED_MODEL_FILE_NAME)
                : FileLocator.getAsStream(this.srlPredUri.getPath());
{code}

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.) 



--
This message was sent by Atlassian JIRA
(v6.2#6252)