Пример #1
0
 def time_cosine_delim_07(self):
     dl = create_delimiter_tokenizer()
     cosine_join(self.ltable, self.rtable, 'id', 'id', 'attr', 'attr', dl,
                 0.7)
Пример #2
0
 def test_cosine_join_invalid_r_out_attr(self):
     cosine_join(self.A, self.B, 'A.id', 'B.id', 'A.attr', 'B.attr',
                 self.tokenizer, self.threshold, ['A.attr'],
                 ['B.invalid_attr'])
Пример #3
0
 def test_cosine_join_invalid_threshold_zero(self):
     cosine_join(self.A, self.B, 'A.id', 'B.id', 'A.attr', 'B.attr',
                 self.tokenizer, 0)
Пример #4
0
 def test_cosine_join_invalid_tokenizer(self):
     cosine_join(self.A, self.B, 'A.id', 'B.id', 'A.attr', 'B.attr', [],
                 self.threshold)
Пример #5
0
 def test_cosine_join_invalid_l_join_attr(self):
     cosine_join(self.A, self.B, 'A.id', 'B.id', 'A.invalid_attr', 'B.attr',
                 self.tokenizer, self.threshold)
Пример #6
0
 def test_cosine_join_invalid_rtable(self):
     cosine_join(self.A, [], 'A.id', 'B.id', 'A.attr', 'B.attr',
                 self.tokenizer, self.threshold)