nltk/nltk — Issue #205: nltk.help.upenn_tagset should allow returning strings and not just print them
Author: ubershmekel
Created: 2012-02-03 20:23:09+00:00
State: open

I wanted to write the explanations for parts of speech to a file but I couldn't because the default behavior just prints to the console.

In the mean time I used this work around:

# eg
tagdict = nltk.data.load('help/tagsets/upenn_tagset.pickle')
tagdict['JJ']

Not that it's too difficult, it's just that the API in python does usually allow both options (eg pprint.pformat vs pprint.pprint).

I can add the patch if it's welcome.