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

Set annotation feature with allowedValues

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0ruta
    • 2.7.0ruta
    • Ruta
    • None

    Description

      If an annotation type has a feature which range is a subtype of string (https://uima.apache.org/d/uimaj-3.0.0/references.html#ugr.ref.xml.component_descriptor.type_system.string_subtypes ) the usual feature assignments in e.g. CREATE calls do not work. They are not set due to the RutaStream::assignFeatureValue method not having an appropriate case for these range types.

      In the JCas cover classes however, the features can be directly set with strings.

      If not setting the feature value is not intended Ruta behavior, I attached a patch that might fix that issue. On my end, this works with all feature assignment methods.

      Attachments

        1. allowedvalues.patch
          1 kB
          Georg Bonczek

        Activity

          People

            pkluegl Peter Klügl
            bonczek Georg Bonczek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: