public class BratDocument extends Object
Constructor and Description |
---|
BratDocument(AnnotationConfiguration config,
String id,
String text,
Collection<BratAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
BratAnnotation |
getAnnotation(String id) |
Collection<BratAnnotation> |
getAnnotations() |
AnnotationConfiguration |
getConfig() |
String |
getId() |
String |
getText() |
static BratDocument |
parseDocument(AnnotationConfiguration config,
String id,
InputStream txtIn,
InputStream annIn) |
public BratDocument(AnnotationConfiguration config, String id, String text, Collection<BratAnnotation> annotations)
public AnnotationConfiguration getConfig()
public String getId()
public String getText()
public BratAnnotation getAnnotation(String id)
public Collection<BratAnnotation> getAnnotations()
public static BratDocument parseDocument(AnnotationConfiguration config, String id, InputStream txtIn, InputStream annIn) throws IOException
IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.