Skip to content

Instantly share code, notes, and snippets.

@richashworth
Created September 10, 2021 09:56
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 richashworth/020ab1c1b8f933b9915dffe3e5d7b0ca to your computer and use it in GitHub Desktop.
Save richashworth/020ab1c1b8f933b9915dffe3e5d7b0ca to your computer and use it in GitHub Desktop.
positive_phrase = "It's great that people are talking about climate change"
negative_phrase = "Rapid climate change is bad for the environment"
for x in [positive_phrase, negative_phrase]: spacy.displacy.render(nlp(x), jupyter=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment