Shivam22182 commited on
Commit
22d6e9e
1 Parent(s): 27af0aa

Upload 4 files

Browse files
Files changed (4) hide show
  1. config.json +26 -0
  2. test.json +137 -0
  3. tokenizer_config.json +57 -0
  4. train.json +116 -0
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.35.0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 28996
26
+ }
test.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "context": "The series primarily takes place in a region called the Final Empire on a world called Scadrial, where the sun and sky are red, vegetation is brown, and the ground is constantly being covered under black volcanic ashfalls.",
4
+ "qas": [
5
+ {
6
+ "id": "00001",
7
+ "is_impossible": false,
8
+ "question": "What is the name of the world in which the series takes place?",
9
+ "answers": [
10
+ {
11
+ "text": "Scadrial",
12
+ "answer_start": 87
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "id": "00002",
18
+ "is_impossible": false,
19
+ "question": "Describe the environmental conditions of the Final Empire.",
20
+ "answers": [
21
+ {
22
+ "text": "sun and sky are red, vegetation is brown, and the ground is constantly being covered under black volcanic ashfalls",
23
+ "answer_start": 107
24
+ }
25
+ ]
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "context": "\"Mistings\" have only one of the many Allomantic powers, while \"Mistborns\" have all the powers.",
31
+ "qas": [
32
+ {
33
+ "id": "00003",
34
+ "is_impossible": false,
35
+ "question": "What distinguishes a Misting from a Mistborn?",
36
+ "answers": [
37
+ {
38
+ "text": "Mistings have only one of the many Allomantic powers, while Mistborns have all the powers.",
39
+ "answer_start": 0
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "id": "00004",
45
+ "is_impossible": false,
46
+ "question": "How many Allomantic powers do Mistings have?",
47
+ "answers": [
48
+ {
49
+ "text": "one",
50
+ "answer_start": 23
51
+ }
52
+ ]
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ "context": "In the Mistborn series, Allomancy is a unique magic system based on ingesting and 'burning' metals to gain various powers.",
58
+ "qas": [
59
+ {
60
+ "id": "00005",
61
+ "is_impossible": false,
62
+ "question": "What is the basis of Allomancy in the Mistborn series?",
63
+ "answers": [
64
+ {
65
+ "text": "ingesting and 'burning' metals",
66
+ "answer_start": 68
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "id": "00006",
72
+ "is_impossible": false,
73
+ "question": "How do individuals gain various powers through Allomancy?",
74
+ "answers": [
75
+ {
76
+ "text": "by ingesting and 'burning' metals",
77
+ "answer_start": 68
78
+ }
79
+ ]
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "context": "The Mistborn series is known for its intricate world-building and a unique magic system known as Allomancy.",
85
+ "qas": [
86
+ {
87
+ "id": "00007",
88
+ "is_impossible": false,
89
+ "question": "What is the unique magic system in the Mistborn series?",
90
+ "answers": [
91
+ {
92
+ "text": "Allomancy",
93
+ "answer_start": 97
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "id": "00009",
99
+ "is_impossible": false,
100
+ "question": "What is one of the notable features of the Mistborn series?",
101
+ "answers": [
102
+ {
103
+ "text": "intricate world-building",
104
+ "answer_start": 59
105
+ }
106
+ ]
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "context": "The characters in the Mistborn series often struggle to survive in a harsh and dystopian world ruled by the Lord Ruler.",
112
+ "qas": [
113
+ {
114
+ "id": "00009",
115
+ "is_impossible": false,
116
+ "question": "Who rules the world in the Mistborn series?",
117
+ "answers": [
118
+ {
119
+ "text": "the Lord Ruler",
120
+ "answer_start": 104
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "id": "00010",
126
+ "is_impossible": false,
127
+ "question": "What kind of world do the characters face in the Mistborn series?",
128
+ "answers": [
129
+ {
130
+ "text": "a harsh and dystopian world",
131
+ "answer_start": 67
132
+ }
133
+ ]
134
+ }
135
+ ]
136
+ }
137
+ ]
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
train.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "context": "The Lord of the Rings is a high-fantasy epic written by J.R.R. Tolkien. The story follows the journey of a hobbit named Frodo Baggins who sets out to destroy a powerful ring that could bring about the end of the world.",
4
+ "qas": [
5
+ {
6
+ "id": "00001",
7
+ "is_impossible": false,
8
+ "question": "Who is the author of The Lord of the Rings?",
9
+ "answers": [
10
+ {
11
+ "text": "J.R.R. Tolkien",
12
+ "answer_start": 56
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "id": "00002",
18
+ "is_impossible": false,
19
+ "question": "What is the name of the main character in The Lord of the Rings?",
20
+ "answers": [
21
+ {
22
+ "text": "Frodo Baggins",
23
+ "answer_start": 120
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "id": "00003",
29
+ "is_impossible": false,
30
+ "question": "What is the quest of the main character in The Lord of the Rings?",
31
+ "answers": [
32
+ {
33
+ "text": "To destroy a powerful ring",
34
+ "answer_start": 147
35
+ }
36
+ ]
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "context": "Harry Potter is a popular series of fantasy novels written by J.K. Rowling. The books follow the adventures of a young wizard named Harry Potter as he attends Hogwarts School of Witchcraft and Wizardry.",
42
+ "qas": [
43
+ {
44
+ "id": "00004",
45
+ "is_impossible": false,
46
+ "question": "Who is the author of the Harry Potter series?",
47
+ "answers": [
48
+ {
49
+ "text": "J.K. Rowling",
50
+ "answer_start": 41
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "id": "00005",
56
+ "is_impossible": false,
57
+ "question": "What is the name of the main character in the Harry Potter series?",
58
+ "answers": [
59
+ {
60
+ "text": "Harry Potter",
61
+ "answer_start": 132
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "id": "00006",
67
+ "is_impossible": false,
68
+ "question": "Which school does Harry Potter attend in the series?",
69
+ "answers": [
70
+ {
71
+ "text": "Hogwarts School of Witchcraft and Wizardry",
72
+ "answer_start": 159
73
+ }
74
+ ]
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "context": "A Song of Ice and Fire is a series of epic fantasy novels by George R.R. Martin. The books are known for their complex characters and political intrigue in the fictional continents of Westeros and Essos.",
80
+ "qas": [
81
+ {
82
+ "id": "00007",
83
+ "is_impossible": false,
84
+ "question": "Who is the author of A Song of Ice and Fire series?",
85
+ "answers": [
86
+ {
87
+ "text": "George R.R. Martin",
88
+ "answer_start": 61
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "id": "00008",
94
+ "is_impossible": false,
95
+ "question": "What is the distinctive feature of A Song of Ice and Fire novels?",
96
+ "answers": [
97
+ {
98
+ "text": "Complex characters and political intrigue",
99
+ "answer_start": 111
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "id": "00009",
105
+ "is_impossible": false,
106
+ "question": "In which continents does the series take place?",
107
+ "answers": [
108
+ {
109
+ "text": "Westeros and Essos",
110
+ "answer_start": 184
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ }
116
+ ]