SequenceField represents a sequence of things. This class just adds a method onto
sequence_length. It exists so that
IndexField and other
Fields can have a single type to require, with a consistent API, whether they are
pointing to words in a
TextField, items in a
ListField, or something else.
class SequenceField(Field[DataArray]): | ... | def sequence_length(self) -> int
How many elements are there in this sequence?
class SequenceField(Field[DataArray]): | ... | def empty_field(self) -> "SequenceField"