Package nltk :: Package sem :: Module lfg :: Class FStructure
[hide private]
[frames] | no frames]

type FStructure

source code

object --+    
         |    
      dict --+
             |
            FStructure

Instance Methods [hide private]
 
safeappend(self, key, item)
Append 'item' to the list at 'key'.
source code
 
__setitem__(self, key, value)
x[i]=y
source code
 
__getitem__(self, key)
x[y]
source code
True if D has a key k, else False
__contains__(self, key) source code
 
to_glueformula_list(self, glue_dict) source code
 
to_depgraph(self, rel=None) source code
 
_to_depgraph(self, nodelist, head, rel) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self, indent=3) source code

Inherited from dict: __cmp__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __new__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Static Methods [hide private]
 
read_depgraph(depgraph) source code
 
_read_depgraph(node, depgraph, label_counter=None, parent=None) source code
 
_make_label(value)
Pick an alphabetic character as identifier for an entity in the model.
source code
Method Details [hide private]

safeappend(self, key, item)

source code 

Append 'item' to the list at 'key'. If no list exists for 'key', then construct one.

__setitem__(self, key, value)
(Index assignment operator)

source code 

x[i]=y

Overrides: dict.__setitem__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)

__contains__(self, key)
(In operator)

source code 
Returns: True if D has a key k, else False
Overrides: dict.__contains__
(inherited documentation)

_make_label(value)
Static Method

source code 

Pick an alphabetic character as identifier for an entity in the model.

Parameters:
  • value (int) - where to index into the list of characters

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: dict.__repr__
(inherited documentation)

__str__(self, indent=3)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)