298299300301302303304305306307308
} if(tag != null){ Chunk chunk = at.addChunk( tokenList.get(i-chunkTokenCount).getStart(), tokenList.get(i-1).getEnd()); chunk.addAnnotation(PHRASE_ANNOTATION, new Value<PhraseTag>(tag, chunkProps/(double)chunkTokenCount)); } // (4) clean up