Indicate if this BatchEncoding was generated from the result of a PreTrainedTokenizerFast Returns: True if generated from subclasses of PreTrainedTokenizerFast, else otherwise
(self)
| 160 | |
| 161 | @property |
| 162 | def is_fast(self): |
| 163 | """ |
| 164 | Indicate if this BatchEncoding was generated from the result of a PreTrainedTokenizerFast |
| 165 | Returns: True if generated from subclasses of PreTrainedTokenizerFast, else otherwise |
| 166 | """ |
| 167 | return self._encodings is not None |
| 168 | |
| 169 | def __getitem__(self, item: Union[int, str]) -> EncodingFast: |
| 170 | """ If the key is a string, get the value of the dict associated to `key` ('input_ids', 'attention_mask'...) |
nothing calls this directly
no outgoing calls
no test coverage detected