jordyvl commited on
Commit
4dc69bd
·
1 Parent(s): 9875014

updated loader for testing different generate examples approach

Browse files
Files changed (1) hide show
  1. test_loader.py +8 -2
test_loader.py CHANGED
@@ -17,7 +17,13 @@
17
 
18
  from datasets import load_dataset
19
 
 
20
 
21
- ds = load_dataset("../DUDE_loader/DUDE_loader.py")
 
 
 
 
 
22
 
23
- import pdb; pdb.set_trace() # breakpoint 05751153 //
 
17
 
18
  from datasets import load_dataset
19
 
20
+ from codetiming import Timer
21
 
22
+ for binding in ["dict_PDF", "dict_annotations (new)"]:
23
+ with Timer(name=f"{binding}", text=binding + " Elapsed time: {:.4f} seconds"):
24
+ if binding == "dict_annotations (new)":
25
+ ds = load_dataset("../DUDE_loader/DUDE_loader.py")
26
+ else:
27
+ ds = load_dataset("jordyvl/DUDE_loader", revision='db20bbf751b14e14e8143170bc201948ef5ac83c')
28
 
29
+ import pdb; pdb.set_trace() # breakpoint d45ace65 //