opennmt/models/model.py
def format_prediction(self, prediction, params=None):
        """Formats the model prediction for file saving.

        Args:
          prediction: The model prediction (same structure as the second output of
            :meth:`opennmt.models.Model.call`).
          params: (optional) Dictionary of formatting parameters.

        Returns:
          A string or list of strings.
        """
        return str(prediction)
Formats the model prediction for file saving.

        Args:
          prediction: The model prediction (same structure as the second output of
            :meth:`opennmt.models.Model.call`).
          params: (optional) Dictionary of formatting parameters.

        Returns:
          A string or list of strings.
        
Formats the model prediction for file saving.
Formats the model prediction for file saving .
def format_prediction(self, prediction, params=None):
        return str(prediction)
def format_prediction ( self , prediction , params = None ) : return str ( prediction )
Formats the model prediction for file saving.
Formats the model prediction for file saving .
"""Formats the model prediction for file saving.

        Args:
          prediction: The model prediction (same structure as the second output of
            :meth:`opennmt.models.Model.call`).
          params: (optional) Dictionary of formatting parameters.

        Returns:
          A string or list of strings.
        """
A string or list of strings.
A string or list of strings .
self
prediction
The model prediction (same structure as the second output of
:meth:`opennmt.models.Model.call`).
The model prediction ( same structure as the second output of : meth : ` opennmt . models . Model . call ` ) .
params
(optional) Dictionary of formatting parameters.
( optional ) Dictionary of formatting parameters .