You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2014/03/30 13:56:14 UTC
[jira] [Commented] (UIMA-3671) Resources cannot be shared between
reader and analysis engines in SimplePipeline
[ https://issues.apache.org/jira/browse/UIMA-3671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954659#comment-13954659 ]
Richard Eckart de Castilho commented on UIMA-3671:
--------------------------------------------------
As a workaround, one could try the following:
- Create the reader and component descriptions as usual with uimaFIT.
- Use UIMAFramework.newDefaultResourceManager() to create a resource manager.
- Use UIMAFramework.produceCollectionReader() and UIMAFramework.produceAnalysisEngine()
to create CollectionReader and AnalysisEngine instances from the descriptors and with your resource manager.
- Pass the CollectionReader and AnalysisEngine instances as parameters to SimplePipeline.
- Mind that you'll have to call the "collectionProcessComplete" and "destroy" methods manually on the instances after SimplePipeline is complete - if you need these events.
> Resources cannot be shared between reader and analysis engines in SimplePipeline
> --------------------------------------------------------------------------------
>
> Key: UIMA-3671
> URL: https://issues.apache.org/jira/browse/UIMA-3671
> Project: UIMA
> Issue Type: Bug
> Components: uimaFIT
> Affects Versions: 2.0.0uimaFIT
> Reporter: Richard Eckart de Castilho
> Assignee: Richard Eckart de Castilho
> Priority: Minor
> Fix For: 2.0.1uimaFIT
>
>
> SimplePipeline currently does not support sharing a resource between the reader and the components.
> Internally, SimplePipeline instantiates the reader and the components
> separately, thus they end up with different resource managers.
> Resources can only be shared by components that use the same resource
> manager.
--
This message was sent by Atlassian JIRA
(v6.2#6252)