rxn.onmt_models.prediction_utils.MultiPrediction
- class rxn.onmt_models.prediction_utils.MultiPrediction(src, pred, tgt)[source]
Bases:
object
Holds information on the source and prediction(s) resulting from a translation.
The object can also hold the target / ground truth (optionally).
- Parameters
src (
str
) –pred (
List
[str
]) –tgt (
Optional
[str
]) –
- __init__(src, pred, tgt)
Method generated by attrs for class MultiPrediction.
- Parameters
src (
str
) –pred (
List
[str
]) –tgt (
Optional
[str
]) –
- Return type
None
Methods
__init__
(src, pred, tgt)Method generated by attrs for class MultiPrediction.
Attributes
src
pred
tgt