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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -