Created
October 4, 2020 14:11
-
-
Save abhishek-shrm/f4b929d2e018a86a7c348dc2b661b6fd to your computer and use it in GitHub Desktop.
This file contains 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
# 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