From c74407df6161c058c8a32be4e9b615db643a012e Mon Sep 17 00:00:00 2001 From: MRXLT Date: Fri, 24 Apr 2020 10:46:52 +0800 Subject: [PATCH] fix lac reader --- python/examples/lac/lac_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/examples/lac/lac_reader.py b/python/examples/lac/lac_reader.py index 0c44177c..3895277d 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 = [] -- GitLab