您好!您在处理数组下标的时候存在不一致的问题: 假设单字符作为aspect或opnion [processor.py](https://github.com/wireless911/span-aste/blob/e158fea27c0926944bf029eefa50b569eb9658f9/utils/processor.py#L140C3-L140C111) 这里通过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是无效的
您好!您在处理数组下标的时候存在不一致的问题:
假设单字符作为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是无效的