Federico Galatolo commited on
Commit
00069d7
1 Parent(s): 5a9bde4

added example file

Browse files
Files changed (1) hide show
  1. example.py +11 -0
example.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+ # Load the 300 text-image labelled pairs
4
+ ds = load_dataset("galatolo/TeTIm-Eval", "captioned")
5
+ print(ds)
6
+ for i, e in zip(range(0, 10), ds["test"]): print(f"{i}) {e}")
7
+
8
+ # Load the 2500 labelled pairs
9
+ ds = load_dataset("galatolo/TeTIm-Eval", "uncaptioned")
10
+ print(ds)
11
+ for i, e in zip(range(0, 10), ds["test"]): print(f"{i}) {e}")