Skip to content

Instantly share code, notes, and snippets.

@NesrineSF
Created March 30, 2021 20:09
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 NesrineSF/c7076f10d7f28df69ba0c9aeba85c6be to your computer and use it in GitHub Desktop.
Save NesrineSF/c7076f10d7f28df69ba0c9aeba85c6be to your computer and use it in GitHub Desktop.
Text subdivison into paragraphs
#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