public class BdocDocument extends Object
Modifier and Type | Field and Description |
---|---|
Map<String,BdocAnnotationSet> |
annotation_sets
Map from annotation set name to annotation set with that name.
|
Map<String,Object> |
features
Document features.
|
String |
name
Document name.
|
String |
offset_type
Indicates the style of offsets used in this document.
|
String |
text
Document text.
|
Constructor and Description |
---|
BdocDocument()
Default constructor.
|
BdocDocument(Map<String,Object> map)
Create BdocDocument from Map representation.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,Object>> |
annsetsToMap(List<List<String>> annspecs)
Return a map representation of annotation sets from the BdocDocument.
|
void |
fixupOffsets(String newtype)
Change all the annotation offsets to the required type (java/python).
|
gate.Document |
toGateDocument()
Convert this BdocDocument instance to a GATE document.
|
Map<String,Object> |
toMap() |
public Map<String,Object> features
NOTE: this is a HashMap rather than a Map so that jackson-jr does not use its own DeferredMap on restoring.
public String text
public String name
public Map<String,BdocAnnotationSet> annotation_sets
NOTE: this is a HashMap rather than a Map so that jackson-jr does not use its own DeferredMap on restoring.
public String offset_type
public void fixupOffsets(String newtype)
newtype
- the target offset typepublic gate.Document toGateDocument()
public Map<String,Map<String,Object>> annsetsToMap(List<List<String>> annspecs)
annspecs
- annotation specificationCopyright © 2021 GATE. All rights reserved.