This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datasets import load_dataset | |
| from transformers import AutoTokenizer | |
| dataset = load_dataset("oscar-corpus/OSCAR-2201", "fr", split="train", streaming=True) | |
| tokenizer = AutoTokenizer.from_pretrained("pegasus-large") | |
| length = 1_000_000 | |
| iter_dataset = iter(dataset) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """🚀 Wordcab Python Package Gist | |
| To install the Wordcab package: | |
| $ pip install wordcab | |
| To login to Wordcab API with your API key: | |
| $ wordcab login |
OlderNewer