>>> hunpos = nltk.tag.HunposTagger("hunpos-1.0-macosx/english.model")
>>> hunpos.tag("What 's the airspeed of an unladen swallow ?".split())
[('What', 'WP'), ("'s", 'VBZ'), ('the', 'DT'), ('airspeed', 'NN'), ('of', 'IN'), ('an', 'DT'), ('unladen', 'NN'), ('swallow', 'VB'), ('?', '.')]
Hunpos is a fast open-source reimplementation of TnT: http://code.google.com/p/hunpos/
You have to install it separately (just download a binary), and you need a model. There are pre-trained English and Hungarian model on the homepage (and I can point you to good Swedish models), or you can train one yourself. There is no NLTK wrapper for training, so you have to do it on the command line - but it's not difficult.
/Peter
> --
> You received this message because you are subscribed to the Google Groups "nltk-users" group.
> To post to this group, send email to nltk-...@googlegroups.com.
> To unsubscribe from this group, send email to nltk-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nltk-users?hl=en.
>
>
/Peter
maybe I added it after 2.0b8 was released. In that case the wrapper is only in the subversion repository. Or you have to wait for the next release.
/Peter
PS. The wrapper can only be used with an existing model. To create a model from a corpus, you have to do it yourself from the commandline. Look at the hunpos homepage for information on that: http://code.google.com/p/hunpos/