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

CasMultiplier doesn't work for PEARs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.3
    • Component/s: Core Java Framework
    • Labels:
      None
    • Environment:

      n/a

      Description

      The original code called process(aCas) and returned the EmptyCasIterator. Thus CASes produced were thrown away. The following is a two line change fix:

      org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper

      public CasIterator processAndOutputNewCASes(CAS aCAS)
      throws AnalysisEngineProcessException {

      UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE,
      this.getClass().getName(), "processAndOutputNewCASes",
      LOG_RESOURCE_BUNDLE, "UIMA_analysis_engine_process_begin__FINE",
      new Object[]

      { this.ae.getAnalysisEngineMetaData().getName() });

      CasIterator result = this.ae.processAndOutputNewCASes(aCAS); // FIXED LINE

      UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE,
      this.getClass().getName(), "processAndOutputNewCASes",
      LOG_RESOURCE_BUNDLE, "UIMA_analysis_engine_process_end__FINE",
      new Object[] { this.ae.getAnalysisEngineMetaData().getName() }

      );

      return result; // FIXED LINE
      }

      Just the indicated lines are changed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              djmccloskey DJ McCloskey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: