Encode the sequence and return the token ids in a list.
(self, seq)
| 1830 | return True |
| 1831 | |
| 1832 | def encode(self, seq): |
| 1833 | |
| 1834 | """ Encode the sequence and return the token ids in a list. """ |
| 1835 | |
| 1836 | return self.tokenizer.encode(seq, add_special_tokens=False).ids |
| 1837 | |
| 1838 | def decode(self, seq, strip_bos_token=True): |
| 1839 |
no outgoing calls
no test coverage detected