uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Goetz <twgo...@gmx.de>
Subject Re: Counting Feature Values
Date Mon, 30 Mar 2009 08:44:05 GMT
Hi,

there is no "easy" way.  I would iterate over the annotations,
put the feature values in sets and check the cardinality of the
sets when done.  You've probably figured this out yourself...

--Thilo

Leonardo Mendes wrote:
> Hi folks!
> Is there a simple way to count all different values of a feature in a
> annotation?
> 
> For example:
> 
> TokenAnnotation
>        -WordFeature
>        -POSFeature
> 
> How to know how many POS classes i have in my cas?
> 
> 
> Thanks,
> --
> Leonardo Silva Kury Aragão Mendes
> Bacharel em Ciência da Computação
> (98) 8805 1985
> 
> 
> 
>>
> 

Mime
View raw message