for (int j = 1, size = tokens.size(); j <= size; ++j)
{
CoreLabel token = tokens.get(j - 1);
output.printf("%d\t%s\t_\t%s\t%s\t_\t%d\t%s\t_\t_%n",
j, token.word(), token.tag(), token.tag(),
token.get(CoreAnnotations.CoNLLDepParentIndexAnnotation.class),
token.get(CoreAnnotations.CoNLLDepTypeAnnotation.class));
}
output.println();
}