if (labels[i] == labelAlphabet.lookupObject("B-NP")) {
start = tokens.get(i).getStartNode().getOffset();
end = tokens.get(i).getEndNode().getOffset();
while ((i + 1 < tokens.size()) &&
(labels[i + 1] == labelAlphabet.lookupObject("I-NP"))) {
end = tokens.get(i + 1).getEndNode().getOffset();
i++;
}
outputAS.add(start, end, nChunkType, features);