提交 c74407df 编写于 作者: M MRXLT

fix lac reader

上级 690624f5
...@@ -101,7 +101,7 @@ class LACReader(object): ...@@ -101,7 +101,7 @@ class LACReader(object):
return word_ids return word_ids
def parse_result(self, words, crf_decode): 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 = [] sent_out = []
tags_out = [] tags_out = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册