You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "DJ McCloskey (JIRA)" <ui...@incubator.apache.org> on 2009/09/10 17:45:58 UTC
[jira] Created: (UIMA-1562) CasMultiplier doesn't work for PEARs
CasMultiplier doesn't work for PEARs
------------------------------------
Key: UIMA-1562
URL: https://issues.apache.org/jira/browse/UIMA-1562
Project: UIMA
Issue Type: Bug
Components: Core Java Framework
Affects Versions: 2.2.2
Environment: n/a
Reporter: DJ McCloskey
Priority: Critical
Fix For: 2.3
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (UIMA-1562) CasMultiplier doesn't work for PEARs
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor closed UIMA-1562.
--------------------------------
Resolution: Fixed
Eddie and Adam know of no reason to not implement this change. All tests OK.
> CasMultiplier doesn't work for PEARs
> ------------------------------------
>
> Key: UIMA-1562
> URL: https://issues.apache.org/jira/browse/UIMA-1562
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.2.2
> Environment: n/a
> Reporter: DJ McCloskey
> Priority: Critical
> Fix For: 2.3
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1562) CasMultiplier doesn't work for PEARs
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753671#action_12753671 ]
Marshall Schor commented on UIMA-1562:
--------------------------------------
This change would support CAS Multipliers wrapped as PEARs. The omission of this appears to have been intentional - does anyone remember why?
> CasMultiplier doesn't work for PEARs
> ------------------------------------
>
> Key: UIMA-1562
> URL: https://issues.apache.org/jira/browse/UIMA-1562
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.2.2
> Environment: n/a
> Reporter: DJ McCloskey
> Priority: Critical
> Fix For: 2.3
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.