public Chunk newChunk ( String id , String phrase , Span < Term > span ) { idManager . updateCounter ( AnnotationType . CHUNK , id ) ; Chunk newChunk = new Chunk ( id , span ) ; newChunk . setPhrase ( phrase ) ; annotationContainer . add ( newChunk , Layer . CHUNKS , AnnotationType . CHUNK ) ; return newChunk ; }
Creates a chunk object to load an existing chunk . It receives it s ID as an argument . The Chunk is added to the document object .