NLTK gentle dissection
Table of Contents
NLTK source code tree
Uppermost
cd ../nltk/
tree -L 1
. ├── AUTHORS.md ├── ChangeLog ├── CONTRIBUTING.md ├── INSTALL.txt ├── jenkins-job-config.xml ├── jenkins.sh ├── LICENSE.txt ├── Makefile ├── MANIFEST.in ├── nltk ├── pip-req.txt ├── README.md ├── RELEASE-HOWTO.txt ├── requirements-test.txt ├── setup.cfg ├── setup.py ├── tools ├── tox.ini └── web 3 directories, 16 files
In depth nltk
cd ../nltk/
tree nltk -L 1
nltk ├── app ├── book.py ├── ccg ├── chat ├── chunk ├── classify ├── cluster ├── collections.py ├── collocations.py ├── compat.py ├── corpus ├── data.py ├── decorators.py ├── downloader.py ├── draw ├── featstruct.py ├── grammar.py ├── help.py ├── inference ├── __init__.py ├── internals.py ├── jsontags.py ├── lazyimport.py ├── metrics ├── misc ├── parse ├── probability.py ├── sem ├── sentiment ├── stem ├── tag ├── tbl ├── test ├── text.py ├── tgrep.py ├── tokenize ├── toolbox.py ├── translate ├── treeprettyprinter.py ├── tree.py ├── treetransforms.py ├── twitter ├── util.py ├── VERSION └── wsd.py 21 directories, 24 files
test
cd ../nltk/
tree nltk/test -L 1
nltk/test ├── all.py ├── bleu.doctest ├── bnc.doctest ├── ccg.doctest ├── ccg_semantics.doctest ├── chat80.doctest ├── childes.doctest ├── childes_fixt.py ├── chunk.doctest ├── classify.doctest ├── classify_fixt.py ├── collocations.doctest ├── compat.doctest ├── compat_fixt.py ├── corpus.doctest ├── corpus_fixt.py ├── crubadan.doctest ├── data.doctest ├── dependency.doctest ├── discourse.doctest ├── discourse_fixt.py ├── doctest_nose_plugin.py ├── drt.doctest ├── featgram.doctest ├── featstruct.doctest ├── floresta.txt ├── framenet.doctest ├── FX8.xml ├── generate.doctest ├── gensim.doctest ├── gensim_fixt.py ├── gluesemantics.doctest ├── gluesemantics_malt.doctest ├── gluesemantics_malt_fixt.py ├── grammar.doctest ├── grammartestsuites.doctest ├── images ├── index.doctest ├── inference.doctest ├── inference_fixt.py ├── __init__.py ├── internals.doctest ├── japanese.doctest ├── logic.doctest ├── Makefile ├── metrics.doctest ├── misc.doctest ├── nonmonotonic.doctest ├── nonmonotonic_fixt.py ├── onto1.fol ├── paice.doctest ├── parse.doctest ├── portuguese.doctest_latin1 ├── portuguese_en.doctest ├── portuguese_en_fixt.py ├── probability.doctest ├── probability_fixt.py ├── propbank.doctest ├── relextract.doctest ├── resolution.doctest ├── runtests.py ├── segmentation_fixt.py ├── sem3.cfg ├── semantics.doctest ├── semantics_fixt.py ├── sentiment.doctest ├── sentiwordnet.doctest ├── simple.doctest ├── stem.doctest ├── tag.doctest ├── tokenize.doctest ├── toolbox.doctest ├── toy.cfg ├── translate.doctest ├── translate_fixt.py ├── tree.doctest ├── treeprettyprinter.doctest ├── treetransforms.doctest ├── twitter.ipynb ├── unit ├── util.doctest ├── wordnet.doctest ├── wordnet_fixt.py ├── wordnet_lch.doctest └── wsd.doctest 2 directories, 83 files
In depth tools
cd ../nltk/
tree tools -L 1
tools ├── find_deprecated.py ├── global_replace.py ├── nltk_term_index.py ├── nltk_term_index.stoplist ├── run_doctests.py └── svnmime.py 0 directories, 6 files
In depth web
cd ../nltk/
tree web -L 1
web ├── api ├── conf.py ├── contribute.rst ├── data.rst ├── dev ├── images ├── index.rst ├── install.rst ├── Makefile └── news.rst 3 directories, 7 files
NLTK in depth
app
cd ../nltk/
cat nltk/app/__init__.py
tree nltk/app -L 1
# Natural Language Toolkit: Applications package
#
# Copyright (C) 2001-2017 NLTK Project
# Author: Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Interactive NLTK Applications:
chartparser: Chart Parser
chunkparser: Regular-Expression Chunk Parser
collocations: Find collocations in text
concordance: Part-of-speech concordancer
nemo: Finding (and Replacing) Nemo regular expression tool
rdparser: Recursive Descent Parser
srparser: Shift-Reduce Parser
wordnet: WordNet Browser
"""
# Import Tkinter-based modules if Tkinter is installed
try:
from six.moves import tkinter
except ImportError:
import warnings
warnings.warn("nltk.app package not loaded "
"(please install Tkinter library).")
else:
from nltk.app.chartparser_app import app as chartparser
from nltk.app.chunkparser_app import app as chunkparser
from nltk.app.collocations_app import app as collocations
from nltk.app.concordance_app import app as concordance
from nltk.app.nemo_app import app as nemo
from nltk.app.rdparser_app import app as rdparser
from nltk.app.srparser_app import app as srparser
from nltk.app.wordnet_app import app as wordnet
try:
from matplotlib import pylab
except ImportError:
import warnings
warnings.warn("nltk.app.wordfreq not loaded "
"(requires the matplotlib library).")
else:
from nltk.app.wordfreq_app import app as wordfreq
# skip doctests from this package
def setup_module(module):
from nose import SkipTest
raise SkipTest("nltk.app examples are not doctests")
nltk/app
├── chartparser_app.py
├── chunkparser_app.py
├── collocations_app.py
├── concordance_app.py
├── __init__.py
├── nemo_app.py
├── rdparser_app.py
├── srparser_app.py
├── wordfreq_app.py
└── wordnet_app.py
0 directories, 10 files
Meet Jenkins on Debian
Download .deb
Install .deb
sudo apt-get install daemon sudo dpkg -i ~/Downloads/jenkins<TAB>
Download .war
Launch .war
in terminal:
java -jar jenkins.war
Open Jenkins
in a new tab
blog comments powered by Disqus