Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created June 27, 2020 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/ea45d0c2628618ebe624835d1243bfc7 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/ea45d0c2628618ebe624835d1243bfc7 to your computer and use it in GitHub Desktop.
# open file and read in data as `text`
with open('wikitext-103/wiki.train.tokens', 'r') as f:
text = f.readlines()
# check number of sequences
len(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment