lx commited on
Commit
d45397a
0 Parent(s):

upload data

Browse files
.gitattributes ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
56
+ # Video files - compressed
57
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
58
+ *.webm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ - config_name: corpus
4
+ features:
5
+ - name: corpus-id
6
+ dtype: string
7
+ - name: image
8
+ dtype: image
9
+ splits:
10
+ - name: train
11
+ num_bytes: 315479652.451
12
+ num_examples: 9593
13
+ download_size: 289013318
14
+ dataset_size: 315479652.451
15
+ - config_name: qrels
16
+ features:
17
+ - name: query-id
18
+ dtype: string
19
+ - name: corpus-id
20
+ dtype: string
21
+ - name: score
22
+ dtype: int32
23
+ splits:
24
+ - name: train
25
+ num_bytes: 353706
26
+ num_examples: 11307
27
+ download_size: 185552
28
+ dataset_size: 353706
29
+ - config_name: queries
30
+ features:
31
+ - name: query-id
32
+ dtype: string
33
+ - name: query
34
+ dtype: string
35
+ - name: answer
36
+ dtype: string
37
+ - name: options
38
+ sequence: string
39
+ - name: is_numerical
40
+ dtype: int32
41
+ splits:
42
+ - name: train
43
+ num_bytes: 1485381
44
+ num_examples: 11307
45
+ download_size: 507845
46
+ dataset_size: 1485381
47
+ configs:
48
+ - config_name: corpus
49
+ data_files:
50
+ - split: train
51
+ path: corpus/train-*
52
+ - config_name: qrels
53
+ data_files:
54
+ - split: train
55
+ path: qrels/train-*
56
+ - config_name: queries
57
+ data_files:
58
+ - split: train
59
+ path: queries/train-*
60
+ ---
61
+
62
+ ## Dataset Description
63
+ This is a VQA dataset based on Scientific Plots from PlotQA dataset from [PlotQA](https://arxiv.org/abs/1909.00997).
64
+
65
+ ### Load the dataset
66
+ ```python
67
+ from datasets import load_dataset
68
+ import csv
69
+
70
+ def load_beir_qrels(qrels_file):
71
+ qrels = {}
72
+ with open(qrels_file) as f:
73
+ tsvreader = csv.DictReader(f, delimiter="\t")
74
+ for row in tsvreader:
75
+ qid = row["query-id"]
76
+ pid = row["corpus-id"]
77
+ rel = int(row["score"])
78
+ if qid in qrels:
79
+ qrels[qid][pid] = rel
80
+ else:
81
+ qrels[qid] = {pid: rel}
82
+ return qrels
83
+
84
+ corpus_ds = load_dataset("openbmb/VisRAG-Ret-Test-PlotQA", name="corpus", split="train")
85
+ queries_ds = load_dataset("openbmb/VisRAG-Ret-Test-PlotQA", name="queries", split="train")
86
+
87
+ qrels_path = "xxxx" # path to qrels file which can be found under qrels folder in the repo.
88
+ qrels = load_beir_qrels(qrels_path)
89
+ ```
90
+
corpus/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd79c6201e30cc590bd709aed58a74463b1c14de176423bd1c16a56194d53ff
3
+ size 289013318
qrels/plotqa-eval-qrels.tsv ADDED
The diff for this file is too large to render. See raw diff
 
qrels/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c874d115b82c1dc78e2f24c1ba4a676a97e5cca54b2f3fc6a103575cebc5eb58
3
+ size 185552
queries/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e39d6fa08c3d794bc75e32efdca5d288cb68c32641cbf9042f9767ba32fb358f
3
+ size 507845