def test_create_bio_tags(self):
    tokens = ' This is Doccano Transformer . '.split()
    offsets = [1, 6, 9, 17, 29]
    labels = [[9, 28, 'SOFTWARE']]
    result = utils.create_bio_tags(tokens, offsets, labels)
    expected = ['O', 'O', 'B-SOFTWARE', 'I-SOFTWARE', 'O']
    self.assertListEqual(result, expected)
def test_create_bio_tags(self):
    tokens = ' This is Doccano Transformer . '.split()
    offsets = [1, 6, 9, 17, 29]
    labels = [[9, 28, 'SOFTWARE']]
    result = utils.create_bio_tags(tokens, offsets, labels)
    expected = ['O', 'O', 'B-SOFTWARE', 'I-SOFTWARE', 'O']
    self.assertListEqual(result, expected)