python 2.7 - Loading treebank corpus with brown's tagset -
i have wsj treebank corpus nltk. want load tagset of brown corpus. possible?
import nltk wsj = nltk.corpus.treebank.tagged_sents(tagset ='universal') # universal tags wsj2 = nltk.corpus.treebank.tagged_sents() # treebank specific tags
according discussion in thread not possible.
so far nltk provides possibility map specific tagsets universal tagset. maybe 1 of suggested solutions in discussion can help:
this apparently not supported in nltk yet, see dan zeman's interset tool or script @ https://gist.github.com/nschneid/6476715
Comments
Post a Comment