You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
head link
for sp in matrix_spots:
........... # recover the positons in the original text
for ent in ent_list:
ent["char_span"] = [ent["char_span"][0] + char_offset, ent["char_span"][1] + char_offset]
ent["tok_span"] = [ent["tok_span"][0] + tok_offset, ent["tok_span"][1] + tok_offset]
感谢作者分享代码,在利用训练好该模型进行预标注的过程中,发现tplinker_plus.py 中的decode_rel有错误
实体的span恢复,应该放在上述循环外,否则解码会出错,例如下
文本总长2001,输出实体的char_pan却出现了[2853, 2866]这种,,,
The text was updated successfully, but these errors were encountered: