class documentation

class GlueDict(dict): (source)

Known subclasses: nltk.sem.glue.DrtGlueDict

Constructor: GlueDict(filename, encoding)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method __str__ Undocumented
Method add_missing_dependencies Undocumented
Method find_label_name Undocumented
Method get_GlueFormula_factory Undocumented
Method get_glueformulas_from_semtype_entry Undocumented
Method get_label Pick an alphabetic character as identifier for an entity in the model.
Method get_meaning_formula parameter "<word>" :param word: The actual word to be replace "<word>"
Method get_semtypes Based on the node, return a list of plausible semtypes in order of plausibility.
Method initialize_labels Undocumented
Method lookup Undocumented
Method lookup_unique Lookup 'key'. There should be exactly one item in the associated relation.
Method read_file Undocumented
Method to_glueformula_list Undocumented
Instance Variable file_encoding Undocumented
Instance Variable filename Undocumented
Method _lookup_semtype_option Undocumented
def __init__(self, filename, encoding=None): (source)

Undocumented

def __str__(self): (source)

Undocumented

def add_missing_dependencies(self, node, depgraph): (source)

Undocumented

def find_label_name(self, name, node, depgraph, unique_index): (source)

Undocumented

def get_GlueFormula_factory(self): (source)

Undocumented

def get_glueformulas_from_semtype_entry(self, lookup, word, node, depgraph, counter): (source)

Undocumented

def get_label(self, node): (source)

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

Parameters
nodeUndocumented
value:intwhere to index into the list of characters
def get_meaning_formula(self, generic, word): (source)

parameter "<word>" :param word: The actual word to be replace "<word>"

Parameters
genericA meaning formula string containing the
wordUndocumented
def get_semtypes(self, node): (source)

Based on the node, return a list of plausible semtypes in order of plausibility.

def initialize_labels(self, expr, node, depgraph, unique_index): (source)

Undocumented

def lookup(self, node, depgraph, counter): (source)

Undocumented

def lookup_unique(self, rel, node, depgraph): (source)

Lookup 'key'. There should be exactly one item in the associated relation.

def read_file(self, empty_first=True): (source)

Undocumented

def to_glueformula_list(self, depgraph, node=None, counter=None, verbose=False): (source)

Undocumented

file_encoding = (source)

Undocumented

filename = (source)

Undocumented

def _lookup_semtype_option(self, semtype, node, depgraph): (source)

Undocumented