phusroyal commited on
Commit
bc89637
1 Parent(s): 90a7387

Update ViHOS.py

Browse files
Files changed (1) hide show
  1. ViHOS.py +17 -1
ViHOS.py CHANGED
@@ -13,7 +13,9 @@ _HOMEPAGE = "https://huggingface.co/datasets/phusroyal/ViHOS"
13
  _LICENSE = "mit"
14
 
15
  _URLS = [
16
- "https://raw.githubusercontent.com/phusroyal/ViHOS/master/data/Span_Extraction_based_version/train.csv"
 
 
17
  ]
18
 
19
  class ViHOS_config(datasets.BuilderConfig):
@@ -47,8 +49,22 @@ class ViHOS(datasets.GeneratorBasedBuilder):
47
  return [
48
  datasets.SplitGenerator(
49
  name=datasets.Split.TRAIN,
 
 
 
 
 
 
 
50
  gen_kwargs={
51
  "filepath": data_dir[0],
 
 
 
 
 
 
 
52
  "split": "test",
53
  },
54
  )
 
13
  _LICENSE = "mit"
14
 
15
  _URLS = [
16
+ "https://raw.githubusercontent.com/phusroyal/ViHOS/master/data/Span_Extraction_based_version/dev.csv",
17
+ "https://raw.githubusercontent.com/phusroyal/ViHOS/master/data/Span_Extraction_based_version/train.csv",
18
+ "https://raw.githubusercontent.com/phusroyal/ViHOS/master/data/Test_data/test.csv"
19
  ]
20
 
21
  class ViHOS_config(datasets.BuilderConfig):
 
49
  return [
50
  datasets.SplitGenerator(
51
  name=datasets.Split.TRAIN,
52
+ gen_kwargs={
53
+ "filepath": data_dir[1],
54
+ "split": "test",
55
+ },
56
+ ),
57
+ datasets.SplitGenerator(
58
+ name=datasets.Split.VALIDATION,
59
  gen_kwargs={
60
  "filepath": data_dir[0],
61
+ "split": "dev",
62
+ },
63
+ ),
64
+ datasets.SplitGenerator(
65
+ name=datasets.Split.TEST,
66
+ gen_kwargs={
67
+ "filepath": data_dir[2],
68
  "split": "test",
69
  },
70
  )