Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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