Created
May 9, 2019 14:54
-
-
Save gaphex/17fc043313c5a7231d0901a3ca66dec3 to your computer and use it in GitHub Desktop.
Truncating OPUS 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
DEMO_MODE = True #@param {type:"boolean"} | |
if DEMO_MODE: | |
CORPUS_SIZE = 1000000 | |
else: | |
CORPUS_SIZE = 100000000 #@param {type: "integer"} | |
!(head -n $CORPUS_SIZE dataset.txt) > subdataset.txt | |
!mv subdataset.txt dataset.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment