nltk/nltk — Issue #79: Verbose does not work for PunktSentenceTokenizer.train()
Author: alexrudnick
Created: 2012-01-17 06:25:36+00:00
State: open

Example code:

import nltk
sentenceTokenizer = nltk.tokenize.punkt.PunktSentenceTokenizer()
sentenceTokenizer.train( text, verbose=True)

This should print the abbreviations and contexts found during the
training. But nothing is printed out.

The problem is that the variable "verbose" is forgot to be passed through.
I fixed this in tokenize/punkt.py and attached the file.

Migrated from http://code.google.com/p/nltk/issues/detail?id=439