src/python/txtai/scoring.py
def score(self, freq, idf, length):
        """
        Calculates a score for each token.

        Args:
            freq: token frequency
            idf: token idf score
            length: total number of tokens in source document

        Returns:
            token score
        """

        return idf

        Calculates a score for each token.

        Args:
            freq: token frequency
            idf: token idf score
            length: total number of tokens in source document

        Returns:
            token score
        
Calculates a score for each token.
Calculates a score for each token .
def score(self, freq, idf, length):
        return idf
def score ( self , freq , idf , length ) : return idf
Calculates a score for each token.
Calculates a score for each token .
"""
        Calculates a score for each token.

        Args:
            freq: token frequency
            idf: token idf score
            length: total number of tokens in source document

        Returns:
            token score
        """
None
self
freq
None
idf
token idf score
token idf score
length
total number of tokens in source document
total number of tokens in source document