I should put up an example for chunking on the project page. However, I am very busy at the moment and may not get around to doing that before a few days.
In short: to do chunking, you have to run TreeTagger twice:
1) first use it as a pos-tagger with the POS model
2) then use it as a chunker with the chunker model
For 2), you have to send <word>-<postag> as tokens to the TreeTagger (so the token + "-" + the pos tag returned in 1).
Also for 2) you need to call
setEpsilon(0.00000001);
setHyphenHeuristics(true);
on the TreeTagger instance you use for chunking.
I have no simple example at hand, but the code of the UIMA component we use might give you an idea how to get set up.
I'll try to provide a simple example... when I get around to doing that.
Cheers,
-- Richard