Package TEES :: Package ExampleWriters :: Module UnmergingExampleWriter :: Class UnmergingExampleWriter
[hide private]

Class UnmergingExampleWriter

source code

SentenceExampleWriter.SentenceExampleWriter --+
                                              |
                                             UnmergingExampleWriter

Instance Methods [hide private]
 
__init__(self) source code
 
writeXMLSentence(self, examples, predictionsByExample, sentenceObject, classSet, classIds, goldSentence=None, exampleStyle=None) source code
 
argumentEntitiesExist(self, arguments, sentenceObject)
Checks whether entity elements have already been created for the argument entities, i.e.
source code
 
addEvent(self, arguments, sentenceObject, umType='unknown', forceAdd=False, predictionStrength=None, exampleNotes=None) source code
 
addEntity(self, entity) source code
 
addInteraction(self, e1, e2, arg) source code
 
isIntersentence(self, interaction) source code
 
getPredictionStrength(self, example, predictionsByExample, classSet, classIds) source code

Inherited from SentenceExampleWriter.SentenceExampleWriter: assertSameSentence, getElementTypes, getPredictionStrengthString, isNegative, loadCorpus, loadExamples, removeChildren, removeNonNameEntities, setElementType, write, writeXML

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: SentenceExampleWriter.SentenceExampleWriter.__init__

writeXMLSentence(self, examples, predictionsByExample, sentenceObject, classSet, classIds, goldSentence=None, exampleStyle=None)

source code 
Overrides: SentenceExampleWriter.SentenceExampleWriter.writeXMLSentence

argumentEntitiesExist(self, arguments, sentenceObject)

source code 

Checks whether entity elements have already been created for the argument entities, i.e. whether the argument events have been inserted.