nltk.sem.Assignment.purge

Assignment.purge(var=None)[source]

Remove one or all keys (i.e. logic variables) from an assignment, and update self.variant.

Parameters:var – a Variable acting as a key for the assignment.