pratyushmaini commited on
Commit
ca68e1a
·
verified ·
1 Parent(s): 4f6bb9a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +54 -0
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # siqa Dataset
2
+
3
+ ## Overview
4
+ This repository contains the processed version of the siqa dataset. The dataset is formatted as a collection of multiple-choice questions.
5
+
6
+ ## Dataset Structure
7
+ Each example in the dataset contains the following fields:
8
+ ```json
9
+ {
10
+ "id": 0,
11
+ "question": "Tracy didn't go home that evening and resisted Riley's attacks. What does Tracy need to do before this?",
12
+ "choices": [
13
+ "make a new plan",
14
+ "Go home and see Riley",
15
+ "Find somewhere to go"
16
+ ],
17
+ "answerID": 2
18
+ }
19
+ ```
20
+
21
+ ## Fields Description
22
+ - `id`: Unique identifier for each example
23
+ - `question`: The question or prompt text
24
+ - `choices`: List of possible answers
25
+ - `answerID`: Index of the correct answer in the choices list (0-based)
26
+
27
+ ## Loading the Dataset
28
+ You can load this dataset using the Hugging Face datasets library:
29
+ ```python
30
+ from datasets import load_dataset
31
+
32
+ # Load the dataset
33
+ dataset = load_dataset("DatologyAI/siqa")
34
+
35
+ # Access the data
36
+ for example in dataset['train']:
37
+ print(example)
38
+ ```
39
+
40
+ ## Example Usage
41
+ ```python
42
+ # Load the dataset
43
+ dataset = load_dataset("DatologyAI/siqa")
44
+
45
+ # Get a sample question
46
+ sample = dataset['train'][0]
47
+
48
+ # Print the question
49
+ print("Question:", sample['question'])
50
+ print("Choices:")
51
+ for idx, choice in enumerate(sample['choices']):
52
+ print(f"{idx}. {choice}")
53
+ print("Correct Answer:", sample['choices'][sample['answerID']])
54
+ ```