Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Natural Language Toolkit (NLTK) # # Copyright (C) 2001-2012 NLTK Project # Authors: Steven Bird <sb@csse.unimelb.edu.au> # Edward Loper <edloper@gradient.cis.upenn.edu> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT
The Natural Language Toolkit (NLTK) is an open source Python library for Natural Language Processing. A free online book is available. (If you use the library for academic research, please cite the book.)
Steven Bird, Ewan Klein, and Edward Loper (2009). Natural Language Processing with Python. O'Reilly Media Inc. http://nltk.org/book """
##////////////////////////////////////////////////////// ## Metadata ##//////////////////////////////////////////////////////
# Version. For each new release, the version number should be updated # in the file VERSION. # If a VERSION file exists, use it! except NameError: __version__ = 'unknown (running code interactively?)' except IOError as ex: __version__ = "unknown (%s)" % ex
# Copyright notice Copyright (C) 2001-2012 NLTK Project.
Distributed and Licensed under the Apache License, Version 2.0, which is included by reference. """
# Description of the toolkit, keywords, and the project's primary URL. The Natural Language Toolkit (NLTK) is a Python package for natural language processing. NLTK requires Python 2.6 or higher.""" 'computational linguistics', 'parsing', 'tagging', 'tokenizing', 'syntax', 'linguistics', 'language', 'natural language', 'text analytics']
# Maintainer, contributors, etc.
# "Trove" classifiers for Python Package Index. 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Information Technology', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Artificial Intelligence', 'Topic :: Scientific/Engineering :: Human Machine Interfaces', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing', 'Topic :: Text Processing :: Filters', 'Topic :: Text Processing :: General', 'Topic :: Text Processing :: Indexing', 'Topic :: Text Processing :: Linguistic', ]
# support numpy from pypy
########################################################### # TOP-LEVEL MODULES ###########################################################
# Import top-level functionality into top-level namespace
# don't import contents into top-level namespace:
########################################################### # PACKAGES ###########################################################
# Packages which can be lazily imported # (a) we don't import * # (b) they're slow to import or have run-time dependencies # that can safely fail at run time
# Optional loading
except ImportError: pass else:
else: except RuntimeError as e: import warnings warnings.warn("Corpus downloader GUI not loaded " "(RuntimeError during import: %s)" % str(e))
# explicitly import all top-level modules (ensuring # they override the same names inadvertently imported # from a subpackage)
# override any accidentally imported demo print("To run the demo code for a module, type nltk.module.demo()") |