(self)
| 6 | |
| 7 | class Dictionary(object): |
| 8 | def __init__(self): |
| 9 | self.word2idx = {} |
| 10 | self.idx2word = [] |
| 11 | self.counter = Counter() |
| 12 | self.total = 0 |
| 13 | |
| 14 | def add_word(self, word): |
| 15 | if word not in self.word2idx: |
nothing calls this directly
no outgoing calls
no test coverage detected