paddlenlp/metrics/distinct.py
def accumulate(self):
        """
        Calculates the final distinct score.

        Returns:
            float: The final distinct score.
        """
        distinct = len(self.diff_ngram) / self.count
        return distinct

        Calculates the final distinct score.

        Returns:
            float: The final distinct score.
        
Calculates the final distinct score.
Calculates the final distinct score .
def accumulate(self):
        distinct = len(self.diff_ngram) / self.count
        return distinct
def accumulate ( self ) : distinct = len ( self . diff_ngram ) / self . count return distinct
Calculates the final distinct score.
Calculates the final distinct score .
"""
        Calculates the final distinct score.

        Returns:
            float: The final distinct score.
        """
The final distinct score.
The final distinct score .
float
self