You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by shreya <sh...@gmail.com> on 2014/08/06 07:33:03 UTC
uima concept mapper : multi threading issue
Hi,
I am using UIMA for annotating some documents using Concept Mapper. I have
built the dictionaries and configured it to our requirements. It gives
expected results in case of single threaded requests.
However in multithreaded environment, it gives exception in the concept
mapper add on code, giving blank result for some documents.
Exception:
Caused by:
org.apache.uima.analysis_engine.annotator.AnnotatorProcessException: Trying
to access value of feature as "uima.cas.FSArray", but range of feature is
"uima.cas.FSArray".
Is concept mapper add on thread safe ?
Re: uima concept mapper : multi threading issue
Posted by Michael Tanenblatt <sl...@park-slope.net>.
I’m sorry, I didn’t take great pains to make ConceptMapper thread safe. I have many updates to the code that I have been terribly slow to get into the distribution, but I have not seen this particular issue. If you could send me more information, I would be glad to look further.
On Aug 6, 2014, at 1:33 AM, shreya <sh...@gmail.com> wrote:
> Hi,
> I am using UIMA for annotating some documents using Concept Mapper. I have
> built the dictionaries and configured it to our requirements. It gives
> expected results in case of single threaded requests.
> However in multithreaded environment, it gives exception in the concept
> mapper add on code, giving blank result for some documents.
>
> Exception:
> Caused by:
> org.apache.uima.analysis_engine.annotator.AnnotatorProcessException: Trying
> to access value of feature as "uima.cas.FSArray", but range of feature is
> "uima.cas.FSArray".
>
> Is concept mapper add on thread safe ?
>
>