SPTokenContainer class

A class that represents a container for the tokens, token count, and character count of a text.

Constructors

SPTokenContainer({List<int>? tokens, int? tokenCount, int? characterCount})
A constructor for SPTokenContainer that initializes the object with an optional list of integer tokens, an optional number of tokens, and an optional number of characters.

Properties

characterCount int?
An integer that represents the number of characters in the original text.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenCount int?
An integer that represents the number of tokens in the encoded text.
final
tokens List<int>?
An list of integer tokens that represent the encoded text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited