Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created September 27, 2021 18:28
Show Gist options
  • Save AayushSameerShah/6b896005288f0efe002b53727fa1ad67 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/6b896005288f0efe002b53727fa1ad67 to your computer and use it in GitHub Desktop.
This will give the list of words tagged by part of speech directly! Amazing! #NLP
tokens = nltk.word_tokenize(text.lower())
text = nltk.Text(tokens)
tags = nltk.pos_tag(text)
@AayushSameerShah
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment