run preprocessing and encode text as Ids
(self, text, process_fn=None)
| 243 | |
| 244 | |
| 245 | def __call__(self, text, process_fn=None): |
| 246 | """run preprocessing and encode text as Ids""" |
| 247 | return self.EncodeAsIds(text, process_fn=process_fn) |
| 248 | |
| 249 | def __len__(self): |
| 250 | """total number of tokens""" |
nothing calls this directly
no test coverage detected