Gustavo Albuquerque Barros
commited on
Commit
•
dd4e8b7
1
Parent(s):
b0a02cc
Update dokki-pagamentos.py
Browse files- dokki-pagamentos.py +2 -3
dokki-pagamentos.py
CHANGED
@@ -52,8 +52,7 @@ class Dokki(datasets.GeneratorBasedBuilder):
|
|
52 |
row["id"]=data["id"]
|
53 |
row["ner_tags"]=data["labels"]
|
54 |
row["tokens"]=data["texts"]
|
55 |
-
|
56 |
-
|
57 |
-
row["bboxes"]=[[bbox[0][0],1,1,1],[1,1,1,1]]
|
58 |
yield idx, row
|
59 |
idx += 1
|
|
|
52 |
row["id"]=data["id"]
|
53 |
row["ner_tags"]=data["labels"]
|
54 |
row["tokens"]=data["texts"]
|
55 |
+
bboxex = [ [bbox[0][0], bbox[0][1], bbox[1][0], bbox[1][1]] for bbox in data["bboxes"]]
|
56 |
+
row["bboxes"]=bboxex
|
|
|
57 |
yield idx, row
|
58 |
idx += 1
|