MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / Token

Class Token

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

Source from the content-addressed store, hash-verified

571
572
573class Token:
574 def __init__(self, word):
575 self.count = 0
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 3

fitMethod · 0.85
_encode_documentMethod · 0.85
fitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected