for (int i = 0; i < labels.length; i++) {
// add the labels as new annotation features
if (iterator.hasNext())
iterator.next().getFeatures().put(labelType,
labelAlphabet.lookupIndex(labels[i]));
// shouldn't happen, but who knows?
else
System.err
.println("Unexpected number of tokens in sentence!");