def term_frequency(self, word):
        return float(self.terms.get(word, 0)) / (self.count or 1)
Returns the term frequency of a given word in the document (0.0-1.0).
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Document.term_frequency