| Trees | Indices | Help |
|
|---|
|
|
Elaborate ruse to allow NLTK's probability models to be stored to disk.
NLTK's classes can't all be pickled and it doesn't provide any other way of storing things like probability distributions. This module provides procedures to produce a picklable representation of various NLTK classes.
Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>
|
|||
|
ObjectStorer Interface for various storers that take certain types of objects and produce a dictionary with the essential data needed to recreate them. |
|||
| ObjectStorerError | |||
| FreqDistStorer | |||
| ConditionalProbDistStorer | |||
| MLEProbDistStorer | |||
| LaplaceProbDistStorer | |||
| WittenBellProbDistStorer | |||
| GoodTuringProbDistStorer | |||
| ConditionalFreqDistStorer | |||
| DictionaryProbDistStorer | |||
| MutableProbDistStorer | |||
| DictionaryConditionalProbDistStorer | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__package__ =
|
|||
|
|||
Returns True is the given object can be successfully pickled, False otherwise. This is just a neat way of catching a pickling error and usually you'll be better off trying to pickle and catching the exception. |
Returns an ObjectStorer subclass that store's the given type if one is found. Raises an ObjectStorerError otherwise. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |