MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __repr__

Method __repr__

numpy_ml/preprocessing/nlp.py:578–580  ·  view source on GitHub ↗

A string representation of the token

(self)

Source from the content-addressed store, hash-verified

576 self.word = word
577
578 def __repr__(self):
579 """A string representation of the token"""
580 return "Token(word='{}', count={})".format(self.word, self.count)
581
582
583class TFIDFEncoder:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected