nltk/nltk — pull request #402 by alexrudnick (2013-05-07 02:00:24+00:00)
Title: fix file descriptor leak when writing to megam training file

Currently if you train a lot of megam classifiers, you'll eventually run out of file handles!

This is because we weren't closing a file handle when we do a tempfile.mkstemp. This patch fixes that.