Span
A slice from a Doc object
Implements
Fields
Boolean
)
A boolean value indicating whether a word vector is associated with the object.
String
)
Verbatim text content.
String
)
Text content, with trailing space character if present.
[Float]
)
A real-valued meaning representation.
Float
)
The L2 norm of the document’s vector representation.
[Token]
)
A tuple of tokens coordinated to span.root.
Int
)
End position of the slice
[Span]
)
Span references
SpanExtension
)
String
)
Span label
[Token]
)
Tokens that are to the left of the span, whose heads are within the span.
String
)
Base form of the span, with no inflectional suffixes.
[Token]
)
Tokens that are to the right of the span, whose heads are within the span.
Token
)
The token with the shortest path to the root of the sentence
Int
)
Start position of the slice
[Token]
)
Tokens within the span and tokens which descend from them.
[Token]
)
Token references