-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a problem in function:"remove_overlapping(sorted_spans):" ? #21
Comments
when START(i) < START(j) <= END(i) < END(j) or START(j) < START(i) <= END(j) < END(j) |
I agree that this function is wrong, but I don't think the spans "si.i1 < sj.i1 <= si.i2 < sj.i2 OR sj.i1 < si.i1 <= sj.i2 < si.i2" should be accepted - the paper says they should be rejected. |
I wonder if we accepted span[3, 4, 5, 6], then span[4, 5] and span[2, 3, 4, 5, 6, 7] will be accepted or not? The code will accept them I think. |
Yes, these spans should be accepted. For example: |
Thanks a lot for your answer. |
Hey,
Is there a problem In utils.py, "def remove_overlapping(sorted_spans):" function in line 98 ?
I think we want to accept "span i" when "si.i1 < sj.i1 <= si.i2 < sj.i2 OR sj.i1 < si.i1 <= sj.i2 < si.i2".
But "if len(set(taken)) == 1 or (taken[0] == taken[-1] == False):" seems do the opposite thing.
For example, if seen = [2, 3, 4, 5, 6], when sj.i1 = 3, sj.2 = 5, then taken = [True, True, True], so len(set(taken)) == 1, it will be appended to the nonoverlapping[] list.
The text was updated successfully, but these errors were encountered: