index
module components.evita.bayes
BayesEventRecognizer
DisambiguationError
Contains a Bayesian disambiguator.
class BayesEventRecognizer
Inherits from: object

Simple Bayesian disambiguator. The only features used are the pos
tag and the definiteness of the noun chunk.

Public Functions

__init__(self, senseProbs, condProbs)
Initialize with dictionaries of sense frequencies/probabilities and conditional probabilities that take features into account.
isEvent(self, lemma, features)
Return True if lemma is an event, False if it is not, and raise a DisambiguationError if there is not enough data for a decision.
class DisambiguationError
Inherits from: LookupError

Use a special exception class to distinguish general KeyErrors from
errors due to failed disambiguation.
module functions
get_classifier()