Package jazzparser :: Package utils :: Package nltk
[hide private]
[frames] | no frames]

Package nltk

source code

Jazz Parser extensions to NLTK classes.

NLTK is optionally used by the Jazz Parser. This module provides extensions to NLTK classes. You shouldn't load anything from this package unless you're willing to have errors raised in the case that NLTK isn't installed, alerting the user that they can't use this feature without NLTK.

NLTK is imported initially here so that it gets tested when the module is loaded.

Note: the way the codebase is currently setup, you'd never not have NLTK installed (it's an external). However, it's theoretically nice to keep stuff the depends directly on NLTK separate so that we can handle its absence graciously.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Submodules [hide private]

Variables [hide private]
  STORERS = [<class 'jazzparser.utils.nltk.hmm.HiddenMarkovModel...
  __package__ = 'jazzparser.utils.nltk'
Variables Details [hide private]

STORERS

Value:
[<class 'jazzparser.utils.nltk.hmm.HiddenMarkovModelTaggerStorer'>,
 <class 'jazzparser.utils.nltk.storage.FreqDistStorer'>,
 <class 'jazzparser.utils.nltk.storage.ConditionalProbDistStorer'>,
 <class 'jazzparser.utils.nltk.storage.MLEProbDistStorer'>,
 <class 'jazzparser.utils.nltk.storage.ConditionalFreqDistStorer'>,
 <class 'jazzparser.utils.nltk.storage.LaplaceProbDistStorer'>,
 <class 'jazzparser.utils.nltk.storage.WittenBellProbDistStorer'>,
 <class 'jazzparser.utils.nltk.storage.GoodTuringProbDistStorer'>,
...