Commit 8910eda
* Update DuplicateKeysError more user friendly
DuplicateKeysError error does not provide any information regarding
the examples which have the same the key. This information is very
helpful for debugging the dataset generator script.
* Removing unused hkey_index variable
* Update Dataset Path in DuplicatedKeysError
The DuplicatedKeysError class was updated to always except
duplicate_key_indices and old Error message is removed.
Path to Dataset in Error updated using dataset name to make it more
user friendly.
* Update index calculation with _num_examples
Current Index calculation does not calculate the absolute indices.
Error message used str.replace , changed it to simple str append.
* Fix Lint Error
* Apply suggestions from code review
Co-authored-by: Quentin Lhoest <[email protected]>
1 parent b8363e0 commit 8910eda
3 files changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
460 | 466 | | |
461 | 467 | | |
462 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
798 | 799 | | |
799 | 800 | | |
800 | 801 | | |
801 | | - | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
802 | 809 | | |
803 | 810 | | |
804 | 811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
0 commit comments