You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Artem (JIRA)" <de...@uima.apache.org> on 2013/08/30 18:49:52 UTC
[jira] [Created] (UIMA-3238)
AnalysisEngine.processAndOutputNewCASes in case of JCasMultiplier returns 0
JCases
Artem created UIMA-3238:
---------------------------
Summary: AnalysisEngine.processAndOutputNewCASes in case of JCasMultiplier returns 0 JCases
Key: UIMA-3238
URL: https://issues.apache.org/jira/browse/UIMA-3238
Project: UIMA
Issue Type: Question
Components: uimaFIT
Reporter: Artem
Priority: Minor
I wanted to write a test for MyJCasMultiplier, to check how many JCases are created. Here is my code:
AnalysisEngineDescription segmenter = createEngineDescription(BreakIteratorSegmenter.class);
AnalysisEngineDescription multiplier = createEngineDescription(MyJCasMultiplier.class);
AggregateBuilder ab = new AggregateBuilder();
ab.add(segmenter);
ab.add(multiplier);
AnalysisEngine engine = ab.createAggregate();
engine.getAnalysisEngineMetaData().getOperationalProperties().setOutputsNewCASes(true);
JCas jCas = engine.newJCas();
jCas.setDocumentText(testString);
JCasIterator it = engine.processAndOutputNewCASes(jCas);
The problem is that engine.processAndOutputNewCASes(jCas) returns always 0 JCases, but I now it should be more :) Did I miss something here or it is a framework issue?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira