Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created October 4, 2020 14:11
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 abhishek-shrm/f4b929d2e018a86a7c348dc2b661b6fd to your computer and use it in GitHub Desktop.
Save abhishek-shrm/f4b929d2e018a86a7c348dc2b661b6fd to your computer and use it in GitHub Desktop.
# Getting abstracts
abstracts=dict.fromkeys(index,None)
for text_file in abs_list:
file=open(text_file,encoding='utf8').read()
abstracts[int(text_file.split('.')[0].split('/')[-1])]=file
# Printing five abstracts
dict(list(abstracts.items())[:5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment