Module BasicClasses :: Class Linkage
[show private | hide private]
[frames | no frames]

Class Linkage

    object --+    
             |    
      BIObject --+
                 |
    object --+   |
             |   |
BIXMLWriteable --+
                 |
                Linkage


A representation of a single linkage as a collection of links between tokens. Each sentence may have several linkages, which are distinguished by linkage type. The type as annotated by the corpus annotators has type "raw"
Method Summary
  __init__(self, oStack, attrs, **args)
  addLink(self, link)
Add a new link to the linkage.
  writeXMLNestedItems(self, out, indent)
    Inherited from BIXMLWriteable
  writeXML(self, out, indent, **kwArgs)
Outputs the complete XML representation of the given object.
  writeXMLClose(self, out, indent)
Prints the closing tag of the object: </tag>.
  writeXMLOpen(self, out, indent, closing)
Writes opening tag into the XML output.
  XMLAttrs(self)
Computes the string representation of the object's attributes, which are included into the XML tag.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Instance Variable Summary
list links: A list of links in no particular order.
string reliability: The reliability of the automatic linkage typing for this sentence.
Sentence sentence: The sentence to which this linkage belongs
string type: The type of the linkage as a string.

Class Variable Summary
list persistentAttrs: The list of attributes to be included in the XML output.
str XMLTag = 'linkage'

Method Details

addLink(self, link)

Add a new link to the linkage.
Parameters:
link - The link to be added
           (type=Link)

Instance Variable Details

links

A list of links in no particular order. The order of the links in the XML file is used.
Type:
list

reliability

The reliability of the automatic linkage typing for this sentence. Can be either high or medium. High reliability is assigned to link types obtained from non-panic parses and is close to 100% reliable.
Type:
string

sentence

The sentence to which this linkage belongs
Type:
Sentence

type

The type of the linkage as a string.
Type:
string

Class Variable Details

persistentAttrs

The list of attributes to be included in the XML output. By default an empty list, that is, no attributes are included by default.
Type:
list
Value:
['type']                                                               

XMLTag

Type:
str
Value:
'linkage'                                                              

Generated by Epydoc 2.0 on Tue Nov 21 15:32:21 2006 http://epydoc.sf.net