def substitute(self, substitutions):
        for (var,cat) in substitutions:
            if var == self:
                 return cat
        return self
If there is a substitution corresponding to this variable,
dataset/ETHPy150Open nltk/nltk/nltk/ccg/api.py/CCGVar.substitute