run preprocessing and encode text as Ids
(self, text, process_fn=None)
| 267 | self._token_type_vocab = {t: Id for Id, t in self.type_id_map.items()} |
| 268 | |
| 269 | def __call__(self, text, process_fn=None): |
| 270 | """run preprocessing and encode text as Ids""" |
| 271 | return self.EncodeAsIds(text, process_fn=process_fn) |
| 272 | |
| 273 | def __len__(self): |
| 274 | """total number of tokens""" |
nothing calls this directly
no test coverage detected