boberle / corefconversion

Conversion scripts for coreference
Mozilla Public License 2.0
27 stars 4 forks source link

Fix ignore_double_indices #10

Closed ianporada closed 2 weeks ago

ianporada commented 4 weeks ago

ignore_double_indices counterintuitively ignores double indices when set to False. This is because isinstance(False, int) and False >= 0 evaluate as True. Changing to type(False) is int to fix this behavior.

boberle commented 2 weeks ago

Thank you for your contribution!

Sorry for the delay, I was sick 😷