Created
March 30, 2021 20:10
-
-
Save NesrineSF/771071a3e16d6d1ee9e342b9ec9a7e6f to your computer and use it in GitHub Desktop.
Subdivision of the text into sentences
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.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