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
- __call__(path: Path) tuple[Mapping[int, Collection[int]], int][source]
Load tokenization from the given path.