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

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

c# - Why Does .NET 4.6 Specific Code Compile When Targeting Older Versions of the Framework? -

php - Issues outputting data after prepared statement with loops -