You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, i am coming again, (nice work deserves deep reading~~)
yesterday's statement has been reorganized.
when the input text's length exceeds max_seq_length, targets in the extra part will be left out since all_doc_token has been truncated according to max_seq_length, however, start/end indexes and polarities in the extra part has been kept in tok_start_positions/tok_end_positions and polarity_labels respectively
at this moment, the code initializes start_position and end_positions with the length of input_ids which has beed truncated, but the for-loop ranges from tok_start_positions/tok_end_positions and example.polarities, which has not been truncated, this may lead to index_out_of_bound exception.
Thank you for your interests in our work.
This is indeed a potential bug. Since we set the max_seq_length to be larger than the maximum length of sentence in the dataset, this bug will not occur in the ABSA task.
However, once the sentence length exceeds max_seq_length, the may lead to index_out_of_bound exception.
We will fix this bug as soon as possible.
hello, i am coming again, (nice work deserves deep reading~~)
yesterday's statement has been reorganized.
when the input text's length exceeds max_seq_length, targets in the extra part will be left out since
all_doc_token
has been truncated according tomax_seq_length
, however, start/end indexes and polarities in the extra part has been kept intok_start_positions/tok_end_positions
andpolarity_labels
respectivelySpanABSA/absa/utils.py
Lines 101 to 115 in 66369af
later, initialize
tokens
fromall_doc_token
with the[CLS]
and[SEP]
added.SpanABSA/absa/utils.py
Lines 117 to 128 in 66369af
convert
tokens
toinput_ids
, and pad it tomax_seq_length
SpanABSA/absa/utils.py
Lines 130 to 136 in 66369af
at this moment, the code initializes
start_position
andend_positions
with the length ofinput_ids
which has beed truncated, but the for-loop ranges fromtok_start_positions/tok_end_positions
andexample.polarities
, which has not been truncated, this may lead toindex_out_of_bound
exception.SpanABSA/absa/utils.py
Lines 142 to 163 in 66369af
The text was updated successfully, but these errors were encountered: