@staticmethod
    def _make_relation_set(num_entities, values):
        r = set()
        for position in [pos for (pos,v) in enumerate(values) if v == 1]:
            r.add(tuple(MaceCommand._make_relation_tuple(position, values, num_entities)))
        return r
Convert a Mace4-style relation table into a dictionary.
dataset/ETHPy150Open nltk/nltk/nltk/inference/mace.py/MaceCommand._make_relation_set