Пример #1
0
 def test_ED_T5_Q4_E1_P8(self):
     self.setArgs(Sim.EDIT_DIST, 5, 4, 1, 8)
     self.assertEqual(self.span_old, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #2
0
 def test_ED_T1_Q1_E1_P3(self):
     self.setArgs(Sim.EDIT_DIST, 1, 1, 1, 3)
     self.assertEqual(self.span_new, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #3
0
 def test_ED_T3_Q3_E1_P1(self):
     self.setArgs(Sim.EDIT_DIST, 3, 3, 1, 1)
     self.assertEqual(self.span_old, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #4
0
 def test_ES_T5_Q4_E24_P32(self):
     self.setArgs(Sim.EDIT_SIM, 0.5, 4, 24, 32)
     self.assertEqual(self.span_old, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #5
0
 def test_ES_T3_Q3_E15_P16(self):
     self.setArgs(Sim.EDIT_SIM, 0.7, 3, 15, 16)
     self.assertEqual(self.span_old, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #6
0
 def test_ES_T5_Q4_E9_P8(self):
     self.setArgs(Sim.EDIT_SIM, 0.9, 4, 9, 8)
     self.assertEqual(self.span_new, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #7
0
 def test_ES_T1_Q2_E6_P1(self):
     self.setArgs(Sim.EDIT_SIM, 0.9, 2, 6, 1)
     self.assertEqual(self.span_old, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return
Пример #8
0
 def test_ES_T1_Q1_E3_P2(self):
     self.setArgs(Sim.EDIT_SIM, 0.9, 1, 3, 2)
     self.assertEqual(self.span_new, [
         (i, j)
         for i, j in BucketCountPruning.iter_bucket_spans(self.Pe, self.T)
     ])
     return