public class SectionAnnotation extends PassageAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
SectionAnnotation.Field |
Annotation.Match, Annotation.Source| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
protected String |
sectionHeading |
protected String |
type |
labelconfidence, source, text| Modifier | Constructor and Description |
|---|---|
protected |
SectionAnnotation()
Used for JSON Deserialization
|
|
SectionAnnotation(Annotation.Source source) |
|
SectionAnnotation(Annotation.Source source,
String type,
String sectionHeading) |
| Modifier and Type | Method and Description |
|---|---|
static void |
createClassTagsFromAnnotations(Document doc,
Annotation.Source source)
Deprecated.
|
boolean |
equals(Object obj)
Two annotations are equal, iff begin and length are equal
|
String |
getAnnotation(SectionAnnotation.Field field) |
String |
getSectionHeading() |
String |
getSectionLabel() |
String |
getSectionLabelOrHeading() |
String |
getType() |
boolean |
matches(SectionAnnotation other)
Returns TRUE, if this Annotation matches the boundaries and class of another annotation
|
void |
setSectionHeading(String sectionHeading) |
void |
setSectionLabel(String label) |
getId, getLabel, setId, setLabelcontains, getConfidence, getSource, getText, hashCode, intersects, matches, matches, setConfidence, setSource, setTextclearTags, clearVectors, clearVectors, clearVectors, compareTo, getBegin, getDocumentRef, getDocumentRefUid, getEnd, getLength, getTag, getUid, getVector, getVector, getVector, getVectorKeys, hasVector, hasVector, putTag, putVector, putVector, setBegin, setDocumentRef, setEnd, setLength, setUidprotected static final org.slf4j.Logger log
protected String type
protected String sectionHeading
protected SectionAnnotation()
public SectionAnnotation(Annotation.Source source)
public SectionAnnotation(Annotation.Source source, String type, String sectionHeading)
public String getSectionLabel()
public void setSectionLabel(String label)
public String getSectionHeading()
public void setSectionHeading(String sectionHeading)
public String getSectionLabelOrHeading()
public String getAnnotation(SectionAnnotation.Field field)
public String getType()
public boolean matches(SectionAnnotation other)
other - public boolean equals(Object obj)
equals in class PassageAnnotationobj - @Deprecated public static void createClassTagsFromAnnotations(Document doc, Annotation.Source source)
Copyright © 2019. All rights reserved.