TorchPrecomputedTokenizerLoader
- class TorchPrecomputedTokenizerLoader[source]
Bases:
PrecomputedTokenizerLoaderA loader via torch.load.
Methods Summary
__call__(path)Load tokenization from the given path.
save(path, order, anchor_ids)Save tokenization to path.
Methods Documentation