nltk.ccg.UndirectedSubstitution

class nltk.ccg.UndirectedSubstitution[source]

Bases: UndirectedBinaryCombinator

Substitution (permutation) combinator. Implements rules of the form Y/Z (XY)/Z -> X/Z (<Sx) And other variations.

can_combine(function, argument)[source]
combine(function, argument)[source]