mmaaz60 commited on
Commit
3728b75
·
verified ·
1 Parent(s): 4e358c3

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: choices
5
+ struct:
6
+ - name: A
7
+ dtype: string
8
+ - name: B
9
+ dtype: string
10
+ - name: C
11
+ dtype: string
12
+ - name: D
13
+ dtype: string
14
+ - name: E
15
+ dtype: string
16
+ - name: question_type
17
+ dtype: string
18
+ - name: id
19
+ dtype: string
20
+ - name: answer
21
+ dtype: string
22
+ - name: youtube_url
23
+ dtype: string
24
+ - name: metadata
25
+ struct:
26
+ - name: knowledge
27
+ sequence: string
28
+ - name: rationale
29
+ dtype: string
30
+ - name: subject
31
+ dtype: string
32
+ - name: textbook
33
+ dtype: string
34
+ - name: video
35
+ dtype: string
36
+ - name: question
37
+ dtype: string
38
+ - name: video_path
39
+ dtype: string
40
+ splits:
41
+ - name: validation
42
+ num_bytes: 1155731
43
+ num_examples: 1000
44
+ download_size: 442034
45
+ dataset_size: 1155731
46
+ configs:
47
+ - config_name: default
48
+ data_files:
49
+ - split: validation
50
+ path: data/validation-*
51
+ ---
data/save_mcq.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+ import pandas as pd
3
+ import os
4
+
5
+ # Load the dataset from Hugging Face
6
+ dataset = load_dataset("lmms-lab/MMVU", split="validation") # Change split if needed
7
+
8
+ # Convert to pandas DataFrame
9
+ df = dataset.to_pandas()
10
+
11
+ # Inspect columns to find question type field
12
+ print(df.columns)
13
+ print(df.head())
14
+
15
+ # Filter rows that are multiple-choice questions
16
+ # Adjust 'question_type' to match the actual column name in MMVU
17
+ mcq_df = df[df["question_type"] == "multiple-choice"]
18
+
19
+ # Save to a new .parquet file
20
+ output_path = "mmvu_mcq.parquet"
21
+ mcq_df.to_parquet(output_path, index=False)
22
+
23
+ print(f"Filtered dataset saved to {output_path}")
24
+ print(f"Original size: {len(df)}, MCQ size: {len(mcq_df)}")
25
+
data/validation_mcq-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c1008cbc027385d0a2d77106c51a10cf9a3b9a0ce65a8cc001a953b530d9773
3
+ size 331958
videos.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52e4cffa31e89bed734601a4102b6badd35cd8b4f5fee1992aae75a431b79364
3
+ size 941447801