| Trees | Index | Help |
|---|
| Module BasicClasses :: Class Entity |
|
object --+
|
BIObject --+
|
object --+ |
| |
BIXMLWriteable --+
|
Entity
| Method Summary | |
|---|---|
__init__(self,
oStack,
parser,
attrs,
**args)
| |
Add an entity to the list of entities nested within the current entity | |
Add a subToken to the entity. | |
computeXMLArgs(self)
| |
Returns the character offsets to the original sentence text of the SubTokens of which this entity consists. | |
Returns the text of the entity. | |
Test whether the entity is being used as a text binding of an entity formula node (L<EntityNode>). | |
Test whether the entity is being used as a text binding of a relationship formula node (L<RelNode>). | |
Append a formula node to the list of formula nodes that use this entity as a text binding | |
writeXMLNestedEntities(self,
out,
indent)
| |
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 | formulaNodesUsingMe: The list of formula nodes which refer to this entity,
using it as their text binding: both Relationships (RelNode) and Entities (EntityNode). |
| string | id: The unique id of the entity in the corpus. |
| list | nestedEntities: The entities which are directly nested in the current entity. |
Sentence |
sentence: The sentence this entity belongs to. |
| list | subTokens: A list of subtokens which constitute this entity. |
EntityType |
type: The entity type of this entity. |
| Class Variable Summary | |
|---|---|
list |
persistentAttrs: The list of attributes to be included in the XML output. |
str |
XMLTag = 'entity'
|
| Method Details |
|---|
addNestedEntity(self, entity)Add an entity to the list of entities nested within the current entity
|
addSubToken(self, subToken)Add a subToken to the entity.
|
getCharOffsets(self)Returns the character offsets to the original sentence text of the SubTokens of which this entity consists.
|
getText(self, getType=False)Returns the text of the entity. |
isFormulaEntity(self)Test whether the entity is being used as a text binding of an entity formula node (L<EntityNode>). In the corpus, neverisFormulaRelationship and isFormulaEntity
return True at the same time.
|
isFormulaRelationship(self)Test whether the entity is being used as a text binding of a relationship formula node (L<RelNode>). In the corpus, neverisFormulaRelationship and isFormulaEntity
return True at the same time.
|
registerFormulaNode(self, node)Append a formula node to the list of formula nodes that use this entity as a text binding
|
| Instance Variable Details |
|---|
formulaNodesUsingMeThe list offormula nodes which refer to this entity,
using it as their text binding: both Relationships (RelNode) and Entities (EntityNode). While the code is written in a
general way, in the actual corpus, the same entity is never used both as
a relationship and entity text binding.
|
idThe unique id of the entity in the corpus.
|
nestedEntitiesThe entities which are directly nested in the current entity.
|
sentenceThesentence this entity belongs to.
|
subTokensA list ofsubtokens which constitute this entity.
|
typeTheentity type of this entity. The type is a
node in an ontology.
|
| 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 |