uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart de Castilho <...@apache.org>
Subject Re: uima-fit and uima annotators (in my case Whitespace annotator)
Date Wed, 29 Jan 2014 14:46:29 GMT
I opened an issue for that and will try to look into it before the
next uimaFIT release.

https://issues.apache.org/jira/browse/UIMA-3591

Thanks for the feedback!

-- Richard

On 29.01.2014, at 14:06, Luca Foppiano <luca@foppiano.org> wrote:

> Hi Richard,
>  here some feedback:
> 
> On Thu, Jan 23, 2014 at 6:18 PM, Richard Eckart de Castilho
> <rec@apache.org>wrote:
> 
>> Thanks. Here are some more specific tips:
>> 
>> 
> [...]
> 
> 
>> uimaFIT should be able to automatically coerce single values into
>> multi-valued parameters. So it should be possible to write this
>> 
>> AnalysisEngineFactory.createEngineDescription(WhitespaceTokenizer.class,
>>                "SofaNames", SimpleParserAE.SOFA_NAME_TEXT_ONLY);
>> 
>> 
> This is not working, I got a ClassCastException
> 
> Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to
> [Ljava.lang.String;
>    at
> org.apache.uima.annotator.WhitespaceTokenizer.initialize(WhitespaceTokenizer.java:328)
>    at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:252)
> 
> In principle I don't have control over that annotator, so if it does
> strange operation on the initialization, I'm not able to change it. If I
> leave the String[] works without problems.
> 
> Thanks
> 
> -- 
> Luca Foppiano
> 
> Software Engineer
> +31615253280
> luca@foppiano.org
> www.foppiano.org


Mime
View raw message