| 571 | |
| 572 | |
| 573 | class 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 | |
| 583 | class TFIDFEncoder: |
no outgoing calls
no test coverage detected