-
Notifications
You must be signed in to change notification settings - Fork 36
使用o2m格式的数据时,需要修改那些代码呢 #84
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionFurther information is requestedFurther information is requested
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionFurther information is requestedFurther information is requested
使用build制作的数据已经正常跑通并得出了结果。
但在使用build_m2m制作的数据时,报错如下:
File "/root/projects/dee/helper/arg_rel.py", line 924, in convert_example_to_feature
if arg_span is not None and arg_span in mspan2span_idx:
TypeError: unhashable type: 'list'
我知道这个错误的原因是,使用build制作的数据的recguid_eventname_eventdict_list中的数据格式为 { "质押物占总股比": "8.01%", "质权方": null, ... },
但是使用build_m2m制作的数据的recguid_eventname_eventdict_list中的数据格式为{ "质押物占总股比": [8.01%], "质权方": null, ... }
那么我使用build_m2m制作的数据时,需要修改哪些代码呢?