示例#1
0
 def __init__(self):
     Input.__init__(self)
     self._candidates = []
     self._candidates_set = []
     self._regex = set()
     self._regex_expressions = []
     self._entries = set()
示例#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"
示例#3
0
文件: Facts.py 项目: lukascorona/SNLP
 def __init__(self):
     Input.__init__(self)
     self.test = []
     self.predition = []
示例#4
0
 def __init__(self, words, similarity):
     Input.__init__(self)
     self.words = words
     self.sim = similarity
     self.index = 0
示例#5
0
 def __init__(self):
     Input.__init__(self)