Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2780

Initialize multi-value parameters with a single value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0uimaFIT
    • uimaFIT
    • None

    Description

      It should be possible to set a multi-value parameter to a single value without having to wrap the value in a collection or array.

      Current:

      AnalysisEngine engine = AnalysisEngineFactory.createPrimitive(ParameterizedAE.class,
        ParameterizedAE.PARAM_STRING_9, new String[] { "singleelementarray" });
      

      Desired:

      AnalysisEngine engine = AnalysisEngineFactory.createPrimitive(ParameterizedAE.class,
        ParameterizedAE.PARAM_STRING_9, "singleelementarray");
      

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: