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