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])
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])
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])
def test_10(self): self.assertDictEqual({ "res1": "r1", "res2": "r2", "frag2": "f2", }, str_and_dict._label2componentsdict(self.w[10]), self.w[10])
def test_9(self): self.assertDictEqual({ "res1": "r1", "res2": "r2", }, str_and_dict._label2componentsdict(self.w[9]), self.w[9])
def test_2(self): self.assertDictEqual({ "res1": "r1", "frag1": "f1" }, str_and_dict._label2componentsdict(self.w[2]), self.w[2])
def test_1(self): self.assertDictEqual({"res1": "r1"}, str_and_dict._label2componentsdict(self.w[1]), self.w[1])