Skip to content

Instantly share code, notes, and snippets.

@amandaiglesiasmoreno
Created July 17, 2022 19: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 amandaiglesiasmoreno/e75205774f8ebe59a9e56f23ff2ba2c6 to your computer and use it in GitHub Desktop.
Save amandaiglesiasmoreno/e75205774f8ebe59a9e56f23ff2ba2c6 to your computer and use it in GitHub Desktop.
# we define the list of stopwords in english
stopwords = nltk.corpus.stopwords.words('english')
# we compute the phrases present in each review
phrases_stream = [transform_sentence_in_phrases(review) for review in reviews]
# we visualize the elements present in the first review (index 0 of the list)
phrases_stream[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment