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

CasMultiplier doesn't work for PEARs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2.2
    • 2.3
    • Core Java Framework
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: