src/python/txtai/scoring.py
def computeIDF(self, freq):
        """
        Computes an idf score for word frequency.

        Args:
            freq: word frequency

        Returns:
            idf score
        """

        return math.log(self.total / (1 + freq))

        Computes an idf score for word frequency.

        Args:
            freq: word frequency

        Returns:
            idf score
        
Computes an idf score for word frequency.
Computes an idf score for word frequency .
def computeIDF(self, freq):
        return math.log(self.total / (1 + freq))
def computeIDF ( self , freq ) : return math . log ( self . total / ( 1 + freq ) )
Computes an idf score for word frequency.
Computes an idf score for word frequency .
"""
        Computes an idf score for word frequency.

        Args:
            freq: word frequency

        Returns:
            idf score
        """
None
self
freq
None