Skip to content

issues for step1 eval_metrics.py #1

@wangbidong

Description

@wangbidong

你好,step1\eval_metrics.py line 115-127 生成pred_tag,line 115 for i in range(len(pred_aspect_tag)):此时pred_aspect_tag是前一步 batch处理后生成的,所以长度是最终batch数,且pred_aspect_tag内的数据是tensor形式而不是像前面的cur_quad是列表,cur_aspect_tag = ''.join(str(ele) for ele in pred_aspect_tag[i])是对一批tensor进行了拼接?这里是不是要将tensor转成列表,针对每句aspect id进行拼接并识别其中的“32*”和“54*”呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions