phusroyal commited on
Commit
49c1c71
1 Parent(s): c80d37d

Update ViHOS.py

Browse files
Files changed (1) hide show
  1. ViHOS.py +8 -1
ViHOS.py CHANGED
@@ -16,8 +16,14 @@ _URLS = [
16
  "https://huggingface.co/datasets/phusroyal/ViHOS/blob/main/train_span_extraction/train.csv"
17
  ]
18
 
 
 
 
 
19
  class ViHOS(datasets.GeneratorBasedBuilder):
20
- VERSION = datasets.Version("2.0.0")
 
 
21
 
22
  def _info(self):
23
  return datasets.DatasetInfo(
@@ -61,6 +67,7 @@ class ViHOS(datasets.GeneratorBasedBuilder):
61
  span_ids = ''
62
 
63
  yield id_, {
 
64
  "content": content,
65
  "span_ids": span_ids,
66
  }
 
16
  "https://huggingface.co/datasets/phusroyal/ViHOS/blob/main/train_span_extraction/train.csv"
17
  ]
18
 
19
+ class ViHOS_config(datasets.BuilderConfig):
20
+ def __init__(self, **kwargs):
21
+ super(SquadV2Config, self).__init__(**kwargs)
22
+
23
  class ViHOS(datasets.GeneratorBasedBuilder):
24
+ BUILDER_CONFIGS = [
25
+ SquadV2Config(name="ViHOS", version=datasets.Version("2.0.0"), description=_DESCRIPTION),
26
+ ]
27
 
28
  def _info(self):
29
  return datasets.DatasetInfo(
 
67
  span_ids = ''
68
 
69
  yield id_, {
70
+ "id": id_
71
  "content": content,
72
  "span_ids": span_ids,
73
  }