| Trees | Index | Help |
|---|
| Module BasicClasses :: Class SubToken |
|
object --+
|
BIObject --+
|
object --+ |
| |
BIXMLWriteable --+
|
SubToken
| Method Summary | |
|---|---|
__init__(self,
oStack,
attrs,
**args)
| |
Returns the zero-based character offset of this subtoken in the string representing the original untokenized text of the sentence. | |
| 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 | |
|---|---|
| string | id: The unique identifier of this subtoken in the corpus. |
| integer | sequence: The sequential number of the subtoken in the sentence (that is,
not the Token). |
| string | text: The text of the subtoken. |
Token |
token: The token to which this subtoken belongs. |
| Class Variable Summary | |
|---|---|
list |
persistentAttrs: The list of attributes to be included in the XML output. |
str |
XMLTag = 'subtoken'
|
| Method Details |
|---|
getCharOffset(self)Returns the zero-based character offset of this subtoken in the string representing the original untokenized text of the sentence. |
| Instance Variable Details |
|---|
idThe unique identifier of this subtoken in the corpus.
|
sequenceThe sequential number of the subtoken in the sentence (that is, not the Token). First subtoken in the sentence is 0, second is 1, etc.
|
textThe text of the subtoken.
|
tokenThetoken to which this subtoken belongs.
|
| Class Variable Details |
|---|
persistentAttrsThe list of attributes to be included in the XML output. By default an empty list, that is, no attributes are included by default.
|
XMLTag
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Tue Nov 21 15:32:22 2006 | http://epydoc.sf.net |