Return the list all encoding from the tokenization process Returns: List[EncodingFast] or None if input was tokenized through Python (i.e. not fast) tokenizer
(self)
| 211 | |
| 212 | @property |
| 213 | def encodings(self) -> Optional[List[EncodingFast]]: |
| 214 | """ |
| 215 | Return the list all encoding from the tokenization process |
| 216 | |
| 217 | Returns: List[EncodingFast] or None if input was tokenized through Python (i.e. not fast) tokenizer |
| 218 | """ |
| 219 | return self._encodings |
| 220 | |
| 221 | def tokens(self, batch_index: int = 0) -> List[str]: |
| 222 | if not self._encodings: |
nothing calls this directly
no outgoing calls
no test coverage detected