Logprobs class

Annotations
  • @JsonSerializable()

Constructors

Logprobs(List<int> textOffset, List<num> tokenLogprobs, List<String> tokens, List<Map<String, num>> topLogprobs)
Logprobs.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textOffset List<int>
Offsets of the tokens.
final
tokenLogprobs List<num>
The log probabilities of each token.
final
tokens List<String>
The string representation of each token.
final
topLogprobs List<Map<String, num>>
The top choices for each token with log probabilities.
final

Methods

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

Operators

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