uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Goetz <twgo...@gmx.de>
Subject Re: determining whether a feature has been set
Date Mon, 03 May 2010 14:02:38 GMT
On 5/3/2010 15:15, Klaus Rothenhäusler wrote:
> Hi,
> is there any way to determine whether a feature of a primitive
> numerical type has been set in a particular feature structure? The
> methods like getIntValue(feat), getFloatValue(feat), etc. all return a
> zero value if the feature hasn't been set. But zero is of course a
> perfectly plausible value in many domains.
> 
> Thanks
> --Klaus Rothenhäusler

There is no way to check this.  We do not wrap primitive
values internally, and so do not attach any metadata like,
has it been set or not.  It's like a Java primitive variable
in that sense.

--Thilo

Mime
View raw message