Skip to content

Instantly share code, notes, and snippets.

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