khalidalt commited on
Commit
deb5bb3
1 Parent(s): 8c5f6c4

Update tydiqa-primary.py

Browse files
Files changed (1) hide show
  1. tydiqa-primary.py +15 -5
tydiqa-primary.py CHANGED
@@ -32,7 +32,7 @@ _URL = "https://huggingface.co/datasets/khalidalt/tydiqa-goldp/resolve/main/prim
32
  _VERSION = datasets.Version("1.1.0", "")
33
 
34
 
35
- class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
36
  BUILDER_CONFIGS = [
37
  datasets.BuilderConfig(
38
  name=lang,
@@ -64,10 +64,20 @@ class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
64
  "annotations": datasets.features.Sequence(
65
  {
66
  'annotation_id': datasets.Value('variant'),
67
- #"passage_answer_candidate_index": datasets.Value("int32"),
68
- "candidate_index":datasets.Value("int32"),
69
- "minimal_answers_start_byte": datasets.Value("int32"),
70
- "minimal_answers_end_byte": datasets.Value("int32"),
 
 
 
 
 
 
 
 
 
 
71
  "yes_no_answer": datasets.Value("string"),
72
  }
73
  ),
32
  _VERSION = datasets.Version("1.1.0", "")
33
 
34
 
35
+ class tydiqa_Primary(datasets.GeneratorBasedBuilder):
36
  BUILDER_CONFIGS = [
37
  datasets.BuilderConfig(
38
  name=lang,
64
  "annotations": datasets.features.Sequence(
65
  {
66
  'annotation_id': datasets.Value('variant'),
67
+ 'minimal_answer': datasets.features.Sequence(
68
+ {
69
+ 'plaintext_start_byte':datasets.Value("int32"),
70
+ 'plaintext_end_byte':datasets.Value("int32"),
71
+
72
+
73
+ }
74
+ ),
75
+ 'passage_answer':datasets.features.Sequence(
76
+ {
77
+ 'candidate_index':datasets.Value("int32"),
78
+ }
79
+
80
+ ),
81
  "yes_no_answer": datasets.Value("string"),
82
  }
83
  ),