Uploaded image for project: 'cTAKES'
  1. cTAKES
  2. CTAKES-299

cannot configure ClearNLPSemanticRoleLabelerAE using XML descriptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 4.0.0
    • 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.)

      Attachments

        Activity

          People

            james-masanz James Joseph Masanz
            zakalwe9 Mats Henrikson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: