Example #1
0
 def test_4_assume_False(self):
     self.assertDictEqual({
         "res1": "r1",
         "frag1": "f1-r2",
     }, str_and_dict._label2componentsdict(self.w[4],
                                           assume_ctc_label=False),
                          self.w[4])
Example #2
0
 def test_12(self):
     self.assertDictEqual(
         {
             "res1": "r1",
             "res2": "r2",
             "frag1": "f1-1-1",
             "frag2": "f2-2-2",
         }, str_and_dict._label2componentsdict(self.w[12]), self.w[11])
Example #3
0
 def test_7(self):
     self.assertDictEqual(
         {
             "res1": "r1",
             "frag1": "f1",
             "res2": "r2",
             "frag2": "f2-2"
         }, str_and_dict._label2componentsdict(self.w[7]), self.w[7])
Example #4
0
 def test_10(self):
     self.assertDictEqual({
         "res1": "r1",
         "res2": "r2",
         "frag2": "f2",
     }, str_and_dict._label2componentsdict(self.w[10]), self.w[10])
Example #5
0
 def test_9(self):
     self.assertDictEqual({
         "res1": "r1",
         "res2": "r2",
     }, str_and_dict._label2componentsdict(self.w[9]), self.w[9])
Example #6
0
 def test_2(self):
     self.assertDictEqual({
         "res1": "r1",
         "frag1": "f1"
     }, str_and_dict._label2componentsdict(self.w[2]), self.w[2])
Example #7
0
 def test_1(self):
     self.assertDictEqual({"res1": "r1"},
                          str_and_dict._label2componentsdict(self.w[1]),
                          self.w[1])