opennmt/models/model.py
def format_score(self, score, params=None, stream=None):
        """Formats the score result for file saving.

        Args:
          score: The score result (same structure as the output of
            :meth:`opennmt.models.Model.score`).
          params: (optional) Dictionary of formatting parameters.
        """
        return str(score)
Formats the score result for file saving.

        Args:
          score: The score result (same structure as the output of
            :meth:`opennmt.models.Model.score`).
          params: (optional) Dictionary of formatting parameters.
        
Formats the score result for file saving.
Formats the score result for file saving .
def format_score(self, score, params=None, stream=None):
        return str(score)
def format_score ( self , score , params = None , stream = None ) : return str ( score )
Formats the score result for file saving.
Formats the score result for file saving .
"""Formats the score result for file saving.

        Args:
          score: The score result (same structure as the output of
            :meth:`opennmt.models.Model.score`).
          params: (optional) Dictionary of formatting parameters.
        """
self
score
The score result (same structure as the output of
:meth:`opennmt.models.Model.score`).
The score result ( same structure as the output of : meth : ` opennmt . models . Model . score ` ) .
params
(optional) Dictionary of formatting parameters.
( optional ) Dictionary of formatting parameters .
stream