Commit 91d807c
committed
NDTextEntity: fix "start >= end" test
LabelBox convention about text location is that "end" is the index of the
*last* character of the substring (that is not the python convention).
I.e.: substring = string[v["start"] : v["end"] + 1]
So, v["start"] == v["end"] is a valid case corresponding to a 1-character
substring.1 parent 4245636 commit 91d807c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
| 763 | + | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| |||
0 commit comments