| Trees | Index | Help |
|---|
| Module BasicClasses :: Class Sentences |
|
object --+
|
BIObject --+
|
object --+ |
| |
BIXMLWriteable --+
|
Sentences
Sentences holds the sentences of the corpus. One instance
corresponds to one XML tag sentences.
| Method Summary | |
|---|---|
Initializes a Sentences object. | |
Appends sentence to the end of the list of sentences. | |
Regenerate the id instance variables. | |
writeXMLNestedItems(self,
out,
indent)
| |
| 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 | |
|---|---|
| list | sentences: List of Sentence objects. |
| Class Variable Summary | |
|---|---|
str |
XMLTag = 'sentences'
|
| Inherited from BIXMLWriteable | |
list |
persistentAttrs: The list of attributes to be included in the XML output. |
| Method Details |
|---|
__init__(self,
oStack,
attrs,
parser,
**args)
Initializes a |
addSentence(self, sentence)Appendssentence to the end of the list of
sentences.
|
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 |
|---|
sentencesList ofSentence objects.
|
| Class Variable Details |
|---|
XMLTag
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Tue Nov 21 15:32:22 2006 | http://epydoc.sf.net |