public interface SSpanningRelation extends SRelation<SSpan,SToken>, STextOverlappingRelation<SSpan,SToken>, STimeOverlappingRelation<SSpan,SToken>, SDocumentGraphObject
A span is used to group a couple of tokens together to give them exactly the
same annotation or to connect them as a bunch with a 3rd node at once. A span
therefore has the semantic of an ordered set. In a graph-based world, we need
to model such an ordered set as nodes and edges. Therefore Salt provides the
node type SSpan and the relation type SSpanningRelation. A
SSpan object represents the span itself and for instance could be
annotated or linked with other nodes. To mark a token as being part of the
set, a SSpanningRelation object connects each token with the span. A
SSpanningRelation always has a span as source and a token as target.
Imagine a piece of a primary text like 'New York' and two tokens t1
(representing 'New') and t2 (representing 'York'). For annotating them as an
entity, you can create a span s1 and connect t1 with s1 via one
SSpanningRelation r1 and t2 with s1 via a second SSpanningRelation
r2. Since a SSpan is just a node, it can be further annotated for
instance with an annotation 'entity= city'.
Spans can even be very helpful to annotate bigger parts of the primary text,
for instance to annotate several tokens as phrases, sentences or foreign
language parts etc. . Also a SSpanningRelation can carry further
annotations, but this is rather unusual since such an edge has no own
linguistic semantics and is just a technical mechanism to model ordered sets
in a graph.
getGraphaddLayer, getDelegate, getGraph, getSource, getTarget, removeLayer, setGraph, setSource, setTargetgetId, getIdentifier, setId, setIdentifieraddAnnotation, addFeature, addMetaAnnotation, addProcessingAnnotation, createAnnotation, createAnnotations, createFeature, createFeatures, createMetaAnnotation, createMetaAnnotations, createProcessingAnnotation, createProcessingAnnotations, getAnnotation, getAnnotation, getAnnotations, getFeature, getFeature, getFeatures, getMetaAnnotation, getMetaAnnotations, getProcessingAnnotation, getProcessingAnnotations, iterator_SAnnotation, iterator_SFeature, iterator_SMetaAnnotation, iterator_SProcessingAnnotationgetName, setNamegetType, setTypegetPathCopyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.