Created
April 15, 2013 02:57
-
-
Save bdewilde/5385390 to your computer and use it in GitHub Desktop.
super basic pos-tagging of tokenized sentences
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
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