(self)
| 522 | return len(self.chars) + 1 # all the possible characters and special 0 token |
| 523 | |
| 524 | def get_output_length(self): |
| 525 | return self.max_word_length + 1 # <START> token followed by words |
| 526 | |
| 527 | def encode(self, word): |
| 528 | ix = torch.tensor([self.stoi[w] for w in word], dtype=torch.long) |
no outgoing calls
no test coverage detected