public class TextAnnotationMerger extends Object
Constructor and Description |
---|
TextAnnotationMerger() |
Modifier and Type | Method and Description |
---|---|
TextAnnotation |
merge(String corpus,
String textId,
List<TextAnnotation> listToMerge)
Creates a new
TextAnnotation by merging all the
TextAnnotation s provided as a parameter. |
public TextAnnotation merge(String corpus, String textId, List<TextAnnotation> listToMerge)
TextAnnotation
by merging all the
TextAnnotation
s provided as a parameter. The new text annotation
will use the tokenization from the original text annotations. All the
views of will be copied over. Note that only the information present in
the input TextAnnotation
s will be present in the output. For
example, if one of the elements in the list does not have a parse view,
while others do, the parse view will have all the constituents and
relations of the others.corpus
- The corpus to which the new TextAnnotation
belongstextId
- The id of the new TextAnnotation
listToMerge
- The List of TextAnnotation
s to mergeCopyright © 2015. All rights reserved.