index
module components.evita.main
Evita
Main module for Evita, the event recognition component.

Responsible for the top-level processing of Evita.
class Evita
Inherits from: TarsqiComponent

Class that implements Evita's event recognizer. Instance variables contain
the name of the component, the TarsqiDocument, a docelement Tag and a
TarsqiTree instance. The TarsqiTree instance in the doctree variable is the
tree for just one element and not for the whole document or string.

Public Functions

__init__(self, tarsqidoc, docelement, imported_events)
Set the NAME instance variable. The doctree variables is filled in during processing.
process_element(self)
Process the element slice of the TarsqiDocument. Loop through all sentences in self.doctree and through all nodes in each sentence and determine if the node contains an event. Events are added to the tag repository on the element.