Skip to content

[BUG]span_index不一致的问题 #16

Description

@micrazy

您好!您在处理数组下标的时候存在不一致的问题:
假设单字符作为aspect或opnion
processor.py
这里通过a2 + 1,实际上的a_end_idx=a_start_idx+1,但
https://github.com/wireless911/span-aste/blob/e158fea27c0926944bf029eefa50b569eb9658f9/models/model.py#L60C3-L60C3
这里的逻辑里单字符的a_end_idx和 a_start_idx是相等的
@wireless911 @ZhihengHao
但似乎对训练不会造成大的影响,只是构造出来的window=1的span是无效的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions