Created
March 30, 2021 20:09
-
-
Save NesrineSF/c7076f10d7f28df69ba0c9aeba85c6be to your computer and use it in GitHub Desktop.
Text subdivison into paragraphs
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
#we use the element output.paragraph to subdivise the text into paragraph | |
#start and end are the positions of the paragraph in the analyzed text | |
for paragraph in output.paragraphs: | |
print (f'Paragraphs:{text[paragraph.start:paragraph.end]:{20}}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment