TranslationResult
- class ctranslate2.TranslationResult
A translation result.
Inherits from:
pybind11_builtins.pybind11_objectAttributes:
- property attention
Attention matrix of each translation hypothesis (empty if
return_attentionwas disabled).
- property hypotheses
Translation hypotheses.
- property logits
Logits of each translation hypothesis (empty if
return_logits_vocabwas disabled).
- property scores
Score of each translation hypothesis (empty if
return_scoreswas disabled).