def __init__(self, candidate_class, entity_types, self_relations=False, nested_relations=False, symmetric_relations=False, entity_sep='~@~', **kwargs):
    self.candidate_class = candidate_class
    self.entity_types = entity_types
    self.arity = len(entity_types)
    self.self_relations = self_relations
    self.nested_relations = nested_relations
    self.symmetric_relations = symmetric_relations
    self.entity_sep = entity_sep
    super(PretaggedCandidateExtractorUDF, self).__init__(**kwargs)
def __init__(self, candidate_class, entity_types, self_relations=False, nested_relations=False, symmetric_relations=False, entity_sep='~@~', **kwargs):
    self.candidate_class = candidate_class
    self.entity_types = entity_types
    self.arity = len(entity_types)
    self.self_relations = self_relations
    self.nested_relations = nested_relations
    self.symmetric_relations = symmetric_relations
    self.entity_sep = entity_sep
    super(PretaggedCandidateExtractorUDF, self).__init__(**kwargs)