Skip to content

Instantly share code, notes, and snippets.

@bdewilde
Created April 15, 2013 02:57
Show Gist options
  • Save bdewilde/5385390 to your computer and use it in GitHub Desktop.
Save bdewilde/5385390 to your computer and use it in GitHub Desktop.
super basic pos-tagging of tokenized sentences
def pos_tag_sents(tokenized_sents):
from nltk.tag import pos_tag
tagged_sents = [pos_tag(sent) for sent in tokenized_sents]
return tagged_sents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment