Package CHEM :: Package Annotation :: Module BaseAnnotator :: Class CompositeAnnotator
[hide private]
[frames] | no frames]

Class CompositeAnnotator



BaseAnnotator --+
                |
               CompositeAnnotator

Convenience class to take care of setting up a series of annotators by name.

Instance Methods [hide private]
 
__init__(self, specificCols, annotatorsByColumn)
Constructor wants to know the list of specific column names the composite annotator should return values for.
 
updateAnnotators(self, specificCols, annotatorsByColumn=None)
Update the specific cols this composite annotator will support.
 
allColumns(self)
Return an ordered sequence of all the column names that this multiple annotator can generate values for.
 
allValues(self, input)
Return an ordered sequence of all the values this multiple annotator can calculate off of the input.

Inherited from BaseAnnotator: annotateDict, iteritems, iterkeys, itervalues, keys, specifyColumns, values

Class Variables [hide private]

Inherited from BaseAnnotator: specificCols

Method Details [hide private]

__init__(self, specificCols, annotatorsByColumn)
(Constructor)

 
Constructor wants to know the list of specific column names the composite annotator should return values for. The annotatorsByColumn should be a dictionary keyed by column names with respective annotators as values. These annotators need not be unique as some MultipleAnnotators can cover provide values for multiple columns. This CompositeAnnotator will take care of sorting those out.
Overrides: BaseAnnotator.__init__

updateAnnotators(self, specificCols, annotatorsByColumn=None)

 
Update the specific cols this composite annotator will support. See constructor for description

allColumns(self)

 

Return an ordered sequence of all the column names that this multiple annotator can generate values for.

To facilitate ease of filtering with case-insensitivity, all of the values returned by this method should be lowercase.
Overrides: BaseAnnotator.allColumns
(inherited documentation)

allValues(self, input)

 
Return an ordered sequence of all the values this multiple annotator can calculate off of the input. The order must correspond to the column list returned by allColumns so the caller can know which element is which.
Overrides: BaseAnnotator.allValues
(inherited documentation)