diff --git a/python/examples/lac/lac_reader.py b/python/examples/lac/lac_reader.py index 0c44177c2d56e5de94a18ce3514d0439a33361c5..3895277dbbf98a9b4ff2d6592d82fe02fe9a4c12 100644 --- a/python/examples/lac/lac_reader.py +++ b/python/examples/lac/lac_reader.py @@ -101,7 +101,7 @@ class LACReader(object): return word_ids def parse_result(self, words, crf_decode): - tags = [self.id2label_dict[str(x)] for x in crf_decode] + tags = [self.id2label_dict[str(x[0])] for x in crf_decode] sent_out = [] tags_out = []