if (foundTrainingTokens) {
for (int ti = firstTrainingToken; ti <= lastTrainingToken; ti++) {
Span tSpan = tokens[ti];
int cStart = cSpan.getStart();
for (int i = tSpan.getStart() + 1; i < tSpan.getEnd(); i++) {
String[] context = cg.getContext(new ObjectIntPair(ctok, i - cStart));
events.add(new Event(TokContextGenerator.NO_SPLIT, context));
}
if (tSpan.getEnd() != cSpan.getEnd()) {
String[] context = cg.getContext(new ObjectIntPair(ctok, tSpan.getEnd() - cStart));
events.add(new Event(TokContextGenerator.SPLIT, context));
}
}
}
}