提交 02d35323 编写于 作者: A Austendeng 提交者: wuzewu

fix bug (#64)

上级 182796ab
...@@ -382,7 +382,7 @@ class SequenceLabelReader(BaseReader): ...@@ -382,7 +382,7 @@ class SequenceLabelReader(BaseReader):
sub_label = "I-" + label[2:] sub_label = "I-" + label[2:]
ret_labels.extend([sub_label] * (len(sub_token) - 1)) ret_labels.extend([sub_label] * (len(sub_token) - 1))
if len(ret_tokens) != len(labels): if len(ret_tokens) != len(ret_labels):
raise ValueError( raise ValueError(
"The length of ret_tokens can't match with labels") "The length of ret_tokens can't match with labels")
return ret_tokens, ret_labels return ret_tokens, ret_labels
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册