nltk.sem.glue module¶
- class nltk.sem.glue.DrtGlueFormula[source]¶
Bases:
GlueFormula
- class nltk.sem.glue.Glue[source]¶
Bases:
object
- class nltk.sem.glue.GlueDict[source]¶
Bases:
dict
- get_label(node)[source]¶
Pick an alphabetic character as identifier for an entity in the model.
- Parameters
value (int) – where to index into the list of characters
- get_meaning_formula(generic, word)[source]¶
- Parameters
generic – A meaning formula string containing the parameter “<word>”
word – The actual word to be replace “<word>”
- get_semtypes(node)[source]¶
Based on the node, return a list of plausible semtypes in order of plausibility.