| Trees | Index | Help |
|---|
| Module BasicClasses :: Class BioInfer |
|
object --+
|
BIObject --+
|
object --+ |
| |
BIXMLWriteable --+
|
BioInfer
Sentences object as well as the ontologies. A single instance of this class
is created and maintained by the XML parser. It corresponds to the
top-level item in the XML file.
| Method Summary | |
|---|---|
__init__(self,
parser,
attrs,
**args)
| |
Insert an ontology into the ontologies dictionary. | |
Validity check for the parsed corpus. | |
Regenerate the id instance variables. | |
writeXMLNestedItems(self,
out,
indent,
includeOntologies)
| |
| Inherited from BIXMLWriteable | |
Outputs the complete XML representation of the given object. | |
Prints the closing tag of the object: </tag>. | |
Writes opening tag into the XML output. | |
Computes the string representation of the object's attributes, which are included into the XML tag. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| Instance Variable Summary | |
|---|---|
| Dictionary | ontologies: A dictionary which stores the ontologies. |
Sentences |
sentences: An instance of Sentences, holding the sentences of the
corpus. |
| Class Variable Summary | |
|---|---|
str |
XMLTag = 'bioinfer'
|
| Inherited from BIXMLWriteable | |
list |
persistentAttrs: The list of attributes to be included in the XML output. |
| Method Details |
|---|
addOntology(self, ontology)Insert an ontology into theontologies dictionary. The
key is ontology.type. If an ontology already exists in the
dictionary under the given key, it gets replaced by the new
ontology.
|
isValid(self)Validity check for the parsed corpus. This returnsFalse is any of the required corpus components is
missing.
|
regenId(self)Regenerate theid instance variables. Only to be used
when the corpus data was changed (re-tokenized, etc...). This is not to
be used unless you know exactly what you are doing.
|
| Instance Variable Details |
|---|
ontologiesA dictionary which stores the ontologies. The key correponds to the ontology type.
|
sentencesAn instance ofSentences, holding the sentences of the
corpus.
|
| Class Variable Details |
|---|
XMLTag
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Tue Nov 21 15:32:22 2006 | http://epydoc.sf.net |