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

Ruta: improve usage as helper lib in java code similar to the uimaFIT helper classes

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0ruta
    • Fix Version/s: 2.4.0ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      Some extensions to the Ruta class could be helpful. Here are some inital thoughts:

      // returns the spans where the rules of the script have been applied
      List<AnnotationFS> result = Ruta.select(CAS cas, String script);

      // returns the spans where the "amount" last rules of the script have been applied
      List<AnnotationFS> result = Ruta.selectLast(CAS cas, String script, int amount);

      // returns annotations that have been created by the rules of the script
      List<clazz> result = Ruta.select(JCas cas, String script, Class clazz);

        Attachments

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              pkluegl Peter Klügl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: