Iterator frequencyTokenItr = frequencyTokenSet.iterator();
int begSegFT = 0, endSegFT = 0;
while (frequencyTokenItr.hasNext())
{
FrequencyToken ft = (FrequencyToken) frequencyTokenItr.next();
begSegFT = ft.getStartOffset();
endSegFT = ft.getEndOffset();
FrequencyAnnotation ma = new FrequencyAnnotation(jcas, begSegFT,
endSegFT);
ma.addToIndexes();
}