tinker.types.SampledProvenanceSpan
class tinker.types.SampledProvenanceSpan()
A run of tokens produced by one sampled sequence.
Claims that the covered datum positions are positions
[offset, offset + length) of the named sequence's sampled tokens.
Two sampled sequences back to back are two adjacent runs, each naming
its own sequence.
Fields:
- sequence_id (str) –
SampledSequence.sequence_idof the sequence this run reproduces. - offset (int) – Position of the run within that sequence's sampled tokens.
- length (int) – Number of covered tokens (must be >= 1).