Created
September 20, 2021 03:17
-
-
Save Nithilaa/1608ac0a1125254d04d23c56bf52b3db 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
! wget http://mlg.ucd.ie/files/datasets/bbc-fulltext.zip | |
! unzip bbc-fulltext.zip | |
project_path = "/text_summarization/" | |
documents = [] | |
documents_dir = Path('/content/bbc/entertainment') | |
for file_path in documents_dir.files('*.txt'): | |
with file_path.open(mode='rt', encoding='utf-8') as fp: | |
documents.append(fp.readlines()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment