GenerationResult

class ctranslate2.GenerationResult

A generation result.

Inherits from: pybind11_builtins.pybind11_object

Attributes:

property logits

Logits of each sequence (empty if return_logits_vocab was disabled).

property scores

Score of each sequence (empty if return_scores was disabled).

property sequences

Generated sequences of tokens.

property sequences_ids

Generated sequences of token IDs.