uimaFIT provides these in the CASUtil and JCasUtil classes:

select(…)
selectCovered(…)
selectCovering(…)

E.g.

for (Token t : select(jcas, Token.class) {
 …
}

Cheers,

-- Richard

Am 08.08.2013 um 15:52 schrieb Marshall Schor <[email protected]>:

> UIMA implements a bunch of CAS iterators of various types, that extend the
> normal Java Iterator class.  Are there corresponding iterables that allow 
> their
> use in things like for (Token token : xxxxx) { } kinds of statements?  (where
> Token is the JCas cover class for UIMA Type "Token").
> 
> If not, is there a reason for this, or just a bit of missing convenience?  
> Does
> UIMAFit supply these?
> 
> -Marshall

Reply via email to