Handles the generation of features over an XML object formatted as
JCML. It does processing every time a parallel sentence including its
contents has been declared. Processing of any other XML type should
follow this example.
|
__init__(self,
out,
feature_generators,
tab_filename,
metric_name,
lang_pair,
test_set) |
source code
|
|
|
|
|
|
|
|
|
startElement(self,
name,
attrs=[ ] )
Signals the start of an element (simplesentence or parallelsentence) |
source code
|
|
|
characters(self,
ch)
The Parser will call this method to report each chunk of character
data. |
source code
|
|
|
|
Inherited from xml.sax.saxutils.XMLGenerator :
endElementNS ,
endPrefixMapping ,
ignorableWhitespace ,
processingInstruction ,
startElementNS ,
startPrefixMapping
Inherited from xml.sax.saxutils.XMLGenerator (private):
_qname
Inherited from xml.sax.handler.ContentHandler :
setDocumentLocator ,
skippedEntity
|