Package nltk :: Module compat
[hide private]
[frames] | no frames]

Module compat

source code

Backwards compatibility with previous versions of Python.

This module provides backwards compatibility by defining functions and classes that were not available in earlier versions of Python. Intented usage:

>>> from nltk.compat import *

Currently, NLTK requires Python 2.4 or later.

Classes [hide private]
  defaultdict
defaultdict(default_factory) --> dict with default factory