Package | Description |
---|---|
gate | |
gate.annotation | |
gate.corpora | |
gate.creole | |
gate.event | |
gate.gui | |
gate.gui.annedit | |
gate.gui.docview | |
gate.html | |
gate.relations | |
gate.util | |
gate.xml |
Modifier and Type | Method and Description |
---|---|
static AnnotationSet |
Factory.createImmutableAnnotationSet(Document document,
Collection<Annotation> annotations)
Utility method to create an immutable annotation set.
|
AnnotationSet |
SimpleAnnotationSet.get()
Get a copy of this annotation set.
|
AnnotationSet |
AnnotationSet.get(Long offset)
Select annotations by offset.
|
AnnotationSet |
AnnotationSet.get(Long startOffset,
Long endOffset)
Select annotations by offset.
|
AnnotationSet |
SimpleAnnotationSet.get(Set<String> types)
Select annotations by a set of types.
|
AnnotationSet |
SimpleAnnotationSet.get(String type)
Select annotations by type.
|
AnnotationSet |
AnnotationSet.get(String type,
FeatureMap constraints)
Select annotations by type and feature values.
|
AnnotationSet |
AnnotationSet.get(String type,
FeatureMap constraints,
Long offset)
Select annotations by type, features and offset.
|
AnnotationSet |
AnnotationSet.get(String type,
Long startOffset,
Long endOffset)
Select annotations by offset and type.
|
AnnotationSet |
AnnotationSet.get(String type,
Set<? extends Object> featureNames)
Select annotations by type and feature names It returns all
annotations of the given type that have the given set of features,
regardless of their concrete values If the type == null, then
select regardless of type
|
AnnotationSet |
SimpleDocument.getAnnotations()
Get the default set of annotations.
|
AnnotationSet |
SimpleDocument.getAnnotations(String name)
Get a named set of annotations.
|
static AnnotationSet |
Utils.getAnnotationsAtOffset(AnnotationSet annotationSet,
Long atOffset)
Return a the subset of annotations from the given annotation set
that start exactly at the given offset.
|
static AnnotationSet |
Utils.getAnnotationsEndingAtOffset(AnnotationSet annotationSet,
Long endOffset) |
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
Annotation coextAnn)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation.
|
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
AnnotationSet coextSet)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation set.
|
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
AnnotationSet coextSet,
String type)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation set and are of the
specified type.
|
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
Annotation coextAnn,
String type)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation and have the specified type.
|
AnnotationSet |
AnnotationSet.getContained(Long startOffset,
Long endOffset)
Select annotations by offset.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
Annotation containingAnnotation)
Get all the annotations from the source annotation set that lie within
the range of the containing annotation.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet containingAnnotationSet)
Get all the annotations from the source annotation set that lie within
the range of the containing annotation set, i.e.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet containingAnnotationSet,
String targetType)
Get all the annotations from the source annotation set with a type equal to
targetType that lie within
the range of the containing annotation set, i.e.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
Annotation containingAnnotation,
String targetType)
Get all the annotations of type targetType
from the source annotation set that lie within
the range of the containing annotation.
|
AnnotationSet |
AnnotationSet.getCovering(String neededType,
Long startOffset,
Long endOffset)
Select annotations of the given type that completely span the range.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
Annotation coveredAnnotation)
Get all the annotations from the source annotation set that cover
the range of the specified annotation.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet coveredAnnotationSet)
Get all the annotations from the source annotation set that cover
the range of the specified annotation set.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet coveredAnnotationSet,
String targetType)
Get all the annotations from the source annotation set with a type equal to
targetType that cover
the range of the specified annotation set.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
Annotation coveredAnnotation,
String targetType)
Get all the annotations of type targetType
from the source annotation set that cover
the range of the specified annotation.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
Annotation overlappedAnnotation)
Get all the annotations from the source annotation set that
partly or totally overlap
the range of the specified annotation.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet overlappedAnnotationSet)
Get all the annotations from the source annotation set that overlap
the range of the specified annotation set.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet overlappedAnnotationSet,
String targetType)
Get all the annotations from the source annotation set with a type equal to
targetType that partly or completely overlap the range of the specified
annotation set.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
Annotation overlappedAnnotation,
String targetType)
Get all the annotations of type targetType
from the source annotation set that partly or totally overlap
the range of the specified annotation.
|
static AnnotationSet |
Utils.intersect(AnnotationSet origSet,
Annotation... others)
Return the subset from the original set that matches one of the given annotations.
|
static AnnotationSet |
Utils.intersect(AnnotationSet origSet,
Collection<Annotation> others) |
static AnnotationSet |
Utils.minus(AnnotationSet origSet,
Annotation... except)
Return the given set with the given annotations removed.
|
static AnnotationSet |
Utils.minus(AnnotationSet origSet,
Collection<Annotation> exceptions)
Return the given set with the given annotations removed.
|
static AnnotationSet |
Utils.plus(AnnotationSet origSet,
Annotation... toAdd)
Return the given set with the given annotations added.
|
static AnnotationSet |
Utils.plus(AnnotationSet origSet,
Collection<Annotation> toAdd)
Return the given set with the given annotations added.
|
Modifier and Type | Method and Description |
---|---|
Map<String,AnnotationSet> |
Document.getNamedAnnotationSets()
Returns a map with the named annotation sets
|
Modifier and Type | Method and Description |
---|---|
static Integer |
Utils.addAnn(AnnotationSet outSet,
AnnotationSet spanSet,
String type,
FeatureMap fm)
Add a new annotation to the output annotation set outSet, spanning the same
region as spanSet, and having the given type and feature map.
|
static Integer |
Utils.addAnn(AnnotationSet outSet,
Annotation spanAnn,
String type,
FeatureMap fm)
Add a new annotation to the output annotation set outSet, covering the same
region as the annotation spanAnn, and having the given type and feature map.
|
static Integer |
Utils.addAnn(AnnotationSet outSet,
long startOffset,
long endOffset,
String type,
FeatureMap fm)
Add a new annotation to the output annotation set outSet, spanning the
given offset range, and having the given type and feature map.
|
static String |
Utils.cleanStringFor(Document doc,
AnnotationSet anns)
Return the cleaned document text as a String covered by the given annotation set.
|
static DocumentContent |
Utils.contentFor(SimpleDocument doc,
AnnotationSet anns)
Return the DocumentContent covered by the given annotation set.
|
static Long |
Utils.end(AnnotationSet as)
Get the end offset of an annotation set.
|
static AnnotationSet |
Utils.getAnnotationsAtOffset(AnnotationSet annotationSet,
Long atOffset)
Return a the subset of annotations from the given annotation set
that start exactly at the given offset.
|
static AnnotationSet |
Utils.getAnnotationsEndingAtOffset(AnnotationSet annotationSet,
Long endOffset) |
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
Annotation coextAnn)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation.
|
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
AnnotationSet coextSet)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation set.
|
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
AnnotationSet coextSet,
String type)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation set and are of the
specified type.
|
static AnnotationSet |
Utils.getCoextensiveAnnotations(AnnotationSet source,
Annotation coextAnn,
String type)
Get all the annotations from the source annotation set that start and end
at exactly the same offsets as the given annotation and have the specified type.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
Annotation containingAnnotation)
Get all the annotations from the source annotation set that lie within
the range of the containing annotation.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet containingAnnotationSet)
Get all the annotations from the source annotation set that lie within
the range of the containing annotation set, i.e.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet containingAnnotationSet,
String targetType)
Get all the annotations from the source annotation set with a type equal to
targetType that lie within
the range of the containing annotation set, i.e.
|
static AnnotationSet |
Utils.getContainedAnnotations(AnnotationSet sourceAnnotationSet,
Annotation containingAnnotation,
String targetType)
Get all the annotations of type targetType
from the source annotation set that lie within
the range of the containing annotation.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
Annotation coveredAnnotation)
Get all the annotations from the source annotation set that cover
the range of the specified annotation.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet coveredAnnotationSet)
Get all the annotations from the source annotation set that cover
the range of the specified annotation set.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet coveredAnnotationSet,
String targetType)
Get all the annotations from the source annotation set with a type equal to
targetType that cover
the range of the specified annotation set.
|
static AnnotationSet |
Utils.getCoveringAnnotations(AnnotationSet sourceAnnotationSet,
Annotation coveredAnnotation,
String targetType)
Get all the annotations of type targetType
from the source annotation set that cover
the range of the specified annotation.
|
static Annotation |
Utils.getOnlyAnn(AnnotationSet annset)
Returns the only annotation that annset is expected to contains, throws an
exception if there is not exactly one annotation.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
Annotation overlappedAnnotation)
Get all the annotations from the source annotation set that
partly or totally overlap
the range of the specified annotation.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet overlappedAnnotationSet)
Get all the annotations from the source annotation set that overlap
the range of the specified annotation set.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
AnnotationSet overlappedAnnotationSet,
String targetType)
Get all the annotations from the source annotation set with a type equal to
targetType that partly or completely overlap the range of the specified
annotation set.
|
static AnnotationSet |
Utils.getOverlappingAnnotations(AnnotationSet sourceAnnotationSet,
Annotation overlappedAnnotation,
String targetType)
Get all the annotations of type targetType
from the source annotation set that partly or totally overlap
the range of the specified annotation.
|
static List<Annotation> |
Utils.inDocumentOrder(AnnotationSet as)
Return a List containing the annotations in the given annotation set, in
document order (i.e.
|
static AnnotationSet |
Utils.intersect(AnnotationSet origSet,
Annotation... others)
Return the subset from the original set that matches one of the given annotations.
|
static AnnotationSet |
Utils.intersect(AnnotationSet origSet,
Collection<Annotation> others) |
static AnnotationSet |
Utils.minus(AnnotationSet origSet,
Annotation... except)
Return the given set with the given annotations removed.
|
static AnnotationSet |
Utils.minus(AnnotationSet origSet,
Collection<Annotation> exceptions)
Return the given set with the given annotations removed.
|
static AnnotationSet |
Utils.plus(AnnotationSet origSet,
Annotation... toAdd)
Return the given set with the given annotations added.
|
static AnnotationSet |
Utils.plus(AnnotationSet origSet,
Collection<Annotation> toAdd)
Return the given set with the given annotations added.
|
static Long |
Utils.start(AnnotationSet as)
Get the start offset of an annotation set.
|
static String |
Utils.stringFor(Document doc,
AnnotationSet anns)
Return the document text as a String covered by the given annotation set.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationSetImpl
Implementation of AnnotationSet.
|
class |
ImmutableAnnotationSetImpl |
Modifier and Type | Method and Description |
---|---|
protected AnnotationSet |
AnnotationSetImpl.emptyAS() |
AnnotationSet |
AnnotationSetImpl.get()
Get all annotations.
|
AnnotationSet |
AnnotationSetImpl.get(Long offset)
Select annotations by offset.
|
AnnotationSet |
AnnotationSetImpl.get(Long startOffset,
Long endOffset)
Select annotations by offset.
|
AnnotationSet |
AnnotationSetImpl.get(Set<String> types)
Select annotations by a set of types.
|
AnnotationSet |
AnnotationSetImpl.get(String type)
Select annotations by type
|
AnnotationSet |
AnnotationSetImpl.get(String type,
FeatureMap constraints)
Select annotations by type and features
This will return an annotation set containing just those annotations of a
particular type (i.e.
|
AnnotationSet |
AnnotationSetImpl.get(String type,
FeatureMap constraints,
Long offset)
Select annotations by type, features and offset
|
AnnotationSet |
AnnotationSetImpl.get(String neededType,
Long startOffset,
Long endOffset)
Select annotations by offset.
|
AnnotationSet |
AnnotationSetImpl.get(String type,
Set<? extends Object> featureNames)
Select annotations by type and feature names
|
AnnotationSet |
AnnotationSetImpl.getContained(Long startOffset,
Long endOffset)
Select annotations contained within an interval, i.e.
|
AnnotationSet |
AnnotationSetImpl.getCovering(String neededType,
Long startOffset,
Long endOffset)
Select annotations of the given type that completely span the range.
|
AnnotationSet |
AnnotationSetImpl.getStartingAt(long offset)
Select annotations by offset.
|
AnnotationSet |
AnnotationSetImpl.getStrict(Long startOffset,
Long endOffset)
Select annotations by offset.
|
Modifier and Type | Method and Description |
---|---|
Annotation |
AnnotationFactory.createAnnotationInSet(AnnotationSet set,
Integer id,
Node start,
Node end,
String type,
FeatureMap features)
Adds a new AnnotationImpl to the given set.
|
Annotation |
DefaultAnnotationFactory.createAnnotationInSet(AnnotationSet set,
Integer id,
Node start,
Node end,
String type,
FeatureMap features) |
Constructor and Description |
---|
AnnotationSetImpl(AnnotationSet c)
Construction from an existing AnnotationSet
|
Modifier and Type | Field and Description |
---|---|
protected AnnotationSet |
DocumentImpl.defaultAnnots
The default annotation set
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,AnnotationSet> |
DocumentImpl.namedAnnotSets
Named sets of annotations
|
Modifier and Type | Method and Description |
---|---|
AnnotationSet |
DocumentImpl.getAnnotations()
Get the default set of annotations.
|
AnnotationSet |
DocumentImpl.getAnnotations(String name)
Get a named set of annotations.
|
Modifier and Type | Method and Description |
---|---|
Map<String,AnnotationSet> |
DocumentImpl.getNamedAnnotationSets()
Returns a map (possibly empty) with the named annotation sets.
|
Modifier and Type | Method and Description |
---|---|
static void |
DocumentXmlUtils.annotationSetToXml(AnnotationSet anAnnotationSet,
StringBuffer buffer)
Converts the Annotation set to XML which is appended to the supplied
StringBuffer instance.
|
static void |
DocumentXmlUtils.annotationSetToXml(AnnotationSet anAnnotationSet,
String annotationSetNameToUse,
StringBuffer buffer)
Converts the Annotation set to XML which is appended to the supplied
StringBuffer instance.
|
static Boolean |
DocumentStaxUtils.readAnnotationSet(XMLStreamReader xsr,
AnnotationSet annotationSet,
Map<Integer,Long> nodeIdToOffsetMap,
Set<Integer> allAnnotIds,
Boolean requireAnnotationIds)
Processes an AnnotationSet element from the given reader and fills
the given annotation set with the corresponding annotations.
|
static void |
DocumentStaxUtils.readXces(InputStream is,
AnnotationSet as)
Read XML data in XCES format
from the given stream and add the corresponding annotations to the
given annotation set.
|
static void |
DocumentStaxUtils.readXces(XMLStreamReader xsr,
AnnotationSet as)
Read XML data in XCES format
from the given reader and add the corresponding annotations to the
given annotation set.
|
void |
DocumentImpl.setDefaultAnnotations(AnnotationSet defaultAnnotations)
This method added by Shafirin Andrey, to allow access to protected member
DocumentImpl.defaultAnnots Required for JAPE-Debugger. |
static void |
DocumentStaxUtils.writeAnnotationSet(AnnotationSet annotations,
String asName,
XMLStreamWriter xsw,
String namespaceURI)
Retained for binary compatibility, new code should call the
Collection<Annotation> version instead. |
static void |
DocumentStaxUtils.writeAnnotationSet(AnnotationSet annotations,
XMLStreamWriter xsw,
String namespaceURI)
Writes the given annotation set to an XMLStreamWriter as GATE XML
format.
|
Modifier and Type | Method and Description |
---|---|
AnnotationSet |
AnnotationVisualResource.getAnnotationSetCurrentlyEdited() |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationVisualResource.editAnnotation(Annotation ann,
AnnotationSet set)
Changes the annotation currently being edited.
|
Constructor and Description |
---|
AnnotationSetEvent(AnnotationSet source,
int type,
Document sourceDocument,
Annotation annotation)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
protected AnnotationSet |
AnnotationDiffGUI.keySet |
protected AnnotationSet |
AnnotationDiffGUI.resSet |
Modifier and Type | Field and Description |
---|---|
protected List<AnnotationSet> |
AnnotationDiffGUI.keySets |
protected List<AnnotationSet> |
AnnotationDiffGUI.resSets |
Modifier and Type | Method and Description |
---|---|
AnnotationSet |
AnnotationDataImpl.getAnnotationSet() |
AnnotationSet |
AnnotationData.getAnnotationSet()
Gets the
AnnotationSet object containing the annotation stored
by this structure. |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationEditorOwner.annotationChanged(Annotation ann,
AnnotationSet set,
String oldType)
Called by the annotation editor when an annotation has been
changed.
|
Constructor and Description |
---|
AnnotationDataImpl(AnnotationSet set,
Annotation ann) |
Modifier and Type | Field and Description |
---|---|
protected AnnotationSet |
AnnotationEditor.set
The parent set of the current annotation.
|
Modifier and Type | Method and Description |
---|---|
AnnotationSet |
AnnotationEditor.getAnnotationSetCurrentlyEdited() |
Modifier and Type | Method and Description |
---|---|
AnnotationDataImpl |
AnnotationListView.addAnnotation(Annotation ann,
AnnotationSet set)
Adds an annotation to be displayed in the list.
|
List<AnnotationData> |
AnnotationListView.addAnnotations(List<Annotation> annotations,
AnnotationSet set)
Adds a batch of annotations in one go.
|
void |
AnnotationListView.annotationChanged(Annotation ann,
AnnotationSet set,
String oldType) |
void |
AnnotationSetsView.annotationChanged(Annotation ann,
AnnotationSet set,
String oldType) |
void |
AnnotationEditor.editAnnotation(Annotation ann,
AnnotationSet set) |
Annotation |
CorefEditor.findOutTheLongestAnnotation(List<Integer> matches,
AnnotationSet set)
Given arrayList containing Ids of the annotations, and an annotationSet, this method
returns the annotations that has longest string among the matches
|
List<Action> |
AnnotationListView.getGenericEditorActions(AnnotationSet set,
Annotation annotation) |
List<Action> |
AnnotationListView.getSpecificEditorActions(AnnotationSet set,
Annotation annotation) |
protected void |
AnnotationEditor.moveAnnotation(AnnotationSet set,
Annotation oldAnnotation,
Long newStartOffset,
Long newEndOffset)
Changes the span of an existing annotation by creating a new annotation
with the same ID, type and features but with the new start and end offsets.
|
void |
AnnotationSetsView.selectAnnotation(Annotation ann,
AnnotationSet annSet)
Sets a particular annotation as selected.
|
Constructor and Description |
---|
EditAnnotationAction(AnnotationSet set,
Annotation ann,
AnnotationVisualResource editor) |
Constructor and Description |
---|
HtmlDocumentHandler(Document aDocument,
Map<String,String> aMarkupElementsMap,
AnnotationSet anAnnotationSet)
Constructor initialises all the private memeber data
|
NekoHtmlDocumentHandler(Document aDocument,
AnnotationSet anAnnotationSet,
Set<String> ignorableTags)
Constructor initialises all the private memeber data
|
Modifier and Type | Field and Description |
---|---|
protected AnnotationSet |
RelationSet.annSet
The
AnnotationSet this set of relations relates to. |
Modifier and Type | Method and Description |
---|---|
AnnotationSet |
RelationSet.getAnnotationSet()
The
AnnotationSet which this instance belongs to. |
Constructor and Description |
---|
RelationSet(AnnotationSet annSet)
You should never create a RelationSet directly, instead get if via
the AnnotationSet
|
Modifier and Type | Method and Description |
---|---|
void |
ClassificationMeasures.calculateConfusionMatrix(AnnotationSet aS1,
AnnotationSet aS2,
String type,
String feature,
boolean verbose)
Create a confusion matrix in which annotations of identical span
bearing the specified feature name are compared in terms of feature value.
|
static boolean |
AnnotationMerging.isSameInstancesForAnnotators(AnnotationSet[] annsA,
int vsy)
Check if the annotation sets contain the same annotations.
|
static void |
AnnotationMerging.mergeAnnotation(AnnotationSet[] annsArr,
String nameFeat,
HashMap<Annotation,String> mergeAnns,
int numMinK,
boolean isTheSameInstances)
Merge all annotationset from an array.
|
static void |
AnnotationMerging.mergeAnnotationMajority(AnnotationSet[] annsArr,
String nameFeat,
HashMap<Annotation,String> mergeAnns,
boolean isTheSameInstances)
Merge all annotationset from an array.
|
Constructor and Description |
---|
XmlDocumentHandler(Document aDocument,
Map<String,String> aMarkupElementsMap,
Map<String,String> anElement2StringMap,
AnnotationSet anAnnotationSet)
Constructs a XmlDocumentHandler object.
|
Copyright © 2024 GATE. All rights reserved.