def __init__(self): Input.__init__(self) self._candidates = [] self._candidates_set = [] self._regex = set() self._regex_expressions = [] self._entries = set()
def __init__(self, *args): Input.__init__(self) self.tokenizer = nltk.data.load('tokenizers/punkt/english.pickle') if len(args) == 1 and isinstance(args[0][0], str): print("AdvancedChecker for Regex:\n") self.regex_list = args[0] self.type = "REGEX" else: print("AdvancedChecker for Triples:\n") self.triples = args[0] self.type = "TRIPLES"
def __init__(self): Input.__init__(self) self.test = [] self.predition = []
def __init__(self, words, similarity): Input.__init__(self) self.words = words self.sim = similarity self.index = 0
def __init__(self): Input.__init__(self)