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
Computing the next sibling id of a passage may result in an IndexOutOfBound error
Given a document made of 3 passages:
Querying /passage/1-3 -> is ok, no next sibling
Querying /passage/1-2 -> is broken due to the next sibling calculation.
The current code will try to get document_references[end + range_length]
with document_references = [1, 2, 3], end=1 and range_length=2
Computing the next sibling id of a passage may result in an IndexOutOfBound error
Given a document made of 3 passages:
Querying /passage/1-3 -> is ok, no next sibling
Querying /passage/1-2 -> is broken due to the next sibling calculation.
The current code will try to get document_references[end + range_length]
with document_references = [1, 2, 3], end=1 and range_length=2
May be fixed by:
The text was updated successfully, but these errors were encountered: