We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55bc5e2 commit 9ef0ad0Copy full SHA for 9ef0ad0
deep_reference_parser/prodigy/prodigy_to_tsv.py
@@ -20,6 +20,8 @@
20
21
msg = Printer()
22
23
+ROWS_TO_PRINT=15
24
+
25
26
class TokenLabelPairs:
27
"""
@@ -365,11 +367,11 @@ def prodigy_to_tsv(
365
367
example_pairs = [
366
368
combine_token_label_pairs(pairs)
369
for i, pairs in enumerate(reduce(zip, pairs_list))
- if i < 15
370
+ if i < ROWS_TO_PRINT
371
]
372
else:
373
merged_pairs = pairs_list[0]
- example_pairs = merged_pairs[0:14]
374
+ example_pairs = merged_pairs[0:ROWS_TO_PRINT]
375
376
with open(output_file, "w") as fb:
377
writer = csv.writer(fb, delimiter="\t")
0 commit comments