Dear all,
I tried to use a StatusCallbackListener object to send the results of the
UIMA process to my own application.
In the following I report a little example:
*public class MyApplication implements StatusCallbackListener{
**public void entityProcessComplete(final CAS cas, final EntityProcessStatus
status)
{
<...manage output indexed into the Cas object...>
}
*
*public void start(){
*
*CpeDescription cpeDescriptor =
UIMAFramework.getXMLParser().parseCpeDescription(new
XMLInputSource(xmlConfigurationFile.getValue().getAbsolutePath()));
*
*
*
*final CollectionProcessingEngine mCPE =
UIMAFramework.produceCollectionProcessingEngine(cpeDescriptor);
*
*
*
*mCPE.addStatusCallbackListener(this);
*
*
*
*mCPE.process();
*
*}
*
*}*
The UIMA CPE descriptor contains a Collection Reader, an Analysis Engine and
a CAS Consumer.
Could this be a good idea? I'm having some problem maybe with the listener:
I obtain not expected null annotations value. Could the reason is a bad
implementation of the Listener?
On Fri, Sep 12, 2008 at 5:24 PM, Florian Laws <
[EMAIL PROTECTED]> wrote:
> Luigi Cosentino schrieb:
>
>> Eddie, thanks for the quick answer: the scenario is the follow: I have a
>> proprietary workflow in which just the first node is an UIMA CPE.
>>
>> input----> UIMA CPE ----> third part node 2 ----> third part node 3
>> --->......
>>
>> I need to pass the UIMA CPE produced results to the next node.
>>
>
> I can think of two options:
>
> a) wrap the other nodes into CPEs
>
> b) use a CAS consumer that takes the results of the UIMA CPE
> and feeds it into your other workflow.
> (you'd have to convert the data in the CAS on your own,
> but there are mechanisms for serialization into XML that
> might help you.)
>
>
> Regards,
>
> Florian
>