Kriyans commited on
Commit
2b71e77
1 Parent(s): db585e5

Update indian_names.py

Browse files
Files changed (1) hide show
  1. indian_names.py +6 -0
indian_names.py CHANGED
@@ -61,6 +61,8 @@ The goal of this task is to provide a definition of emerging and of rare entitie
61
 
62
  _URL = "https://github.com/Kriyansparsana/demorepo/blob/main/"
63
  _TRAINING_FILE = "wnut17train.conll"
 
 
64
 
65
 
66
  class indian_namesConfig(datasets.BuilderConfig):
@@ -120,12 +122,16 @@ class indian_names(datasets.GeneratorBasedBuilder):
120
  """Returns SplitGenerators."""
121
  urls_to_download = {
122
  "train": f"{_URL}{_TRAINING_FILE}",
 
 
123
 
124
  }
125
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
126
 
127
  return [
128
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
 
 
129
 
130
  ]
131
 
 
61
 
62
  _URL = "https://github.com/Kriyansparsana/demorepo/blob/main/"
63
  _TRAINING_FILE = "wnut17train.conll"
64
+ _DEV_FILE = "emerging.dev%20(1).conll"
65
+ _TEST_FILE = "emerging.test.annotated"
66
 
67
 
68
  class indian_namesConfig(datasets.BuilderConfig):
 
122
  """Returns SplitGenerators."""
123
  urls_to_download = {
124
  "train": f"{_URL}{_TRAINING_FILE}",
125
+ "dev": f"{_URL}{_DEV_FILE}",
126
+ "test": f"{_URL}{_TEST_FILE}",
127
 
128
  }
129
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
130
 
131
  return [
132
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
133
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
134
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
135
 
136
  ]
137