def __init__(self, mention_classes, mention_spaces, matchers, **kwargs):
self.mention_classes = (<EOL>mention_classes<EOL>if isinstance(mention_classes, (list, tuple))<EOL>else [mention_classes]<EOL>)<EOL>self.mention_spaces = (<EOL>mention_spaces<EOL>if isinstance(mention_spaces, (list, tuple))<EOL>else [mention_spaces]<EOL>)<EOL>self.matchers = matchers if isinstance(matchers, (list, tuple)) else [matchers]<EOL>self.mention_spaces = list(map(deepcopy, self.mention_spaces))<EOL>self.child_context_set = set()<EOL>super(MentionExtractorUDF, self).__init__(**kwargs)<EOL>
Initialize the MentionExtractorUDF.