nltk.sem.arity()

nltk.sem.arity(rel)[source]

Check the arity of a relation. :type rel: set of tuples :rtype: int of tuple of str