Example #1
0
 def __init__(self):
     Input.__init__(self)
     self._candidates = []
     self._candidates_set = []
     self._regex = set()
     self._regex_expressions = []
     self._entries = set()
Example #2
0
 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"
Example #3
0
 def __init__(self):
     Input.__init__(self)
     self.test = []
     self.predition = []
Example #4
0
 def __init__(self, words, similarity):
     Input.__init__(self)
     self.words = words
     self.sim = similarity
     self.index = 0
Example #5
0
 def __init__(self):
     Input.__init__(self)