Skip to content

使用o2m格式的数据时,需要修改那些代码呢 #84

@afbui2821q893

Description

@afbui2821q893

使用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制作的数据时,需要修改哪些代码呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions