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

Class EntityExampleWriter

source code

SentenceExampleWriter.SentenceExampleWriter --+
                                              |
                                             EntityExampleWriter

Instance Methods [hide private]
 
__init__(self) source code
 
writeXMLSentence(self, examples, predictionsByExample, sentenceObject, classSet, classIds, goldSentence=None, exampleStyle=None) source code
 
getMergedEntityType(self, entities)
If a single token belongs to multiple entities of different types, a new, composite type is defined.
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

getMergedEntityType(self, entities)

source code 

If a single token belongs to multiple entities of different types, a new, composite type is defined. This type is the alphabetically ordered types of these entities joined with '---'.