GenerationResult

class ctranslate2.GenerationResult

A generation result.

Inherits from: pybind11_builtins.pybind11_object

Attributes:

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.