mahdiyehebrahimi commited on
Commit
433e2ec
1 Parent(s): d0342a0

Update utc.py

Browse files
Files changed (1) hide show
  1. utc.py +18 -6
utc.py CHANGED
@@ -11,8 +11,12 @@ _CITATION = """Citation"""
11
  _DESCRIPTION = """Description"""
12
 
13
  _DOWNLOAD_URLS = {
14
- "train": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_train.csv",
15
- "test": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_test.csv",
 
 
 
 
16
  }
17
 
18
 
@@ -49,12 +53,20 @@ class DatasetName(datasets.GeneratorBasedBuilder):
49
  """
50
  Return SplitGenerators.
51
  """
52
- train_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["train"])
53
- test_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["test"])
 
 
 
 
54
 
55
  return [
56
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
57
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
 
 
 
 
58
  ]
59
 
60
  # TODO
 
11
  _DESCRIPTION = """Description"""
12
 
13
  _DOWNLOAD_URLS = {
14
+ "utc_train_text": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_train_text.csv",
15
+ "utc_test_text": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_test_text.csv",
16
+ "utc_train_ner": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_train_ner.csv",
17
+ "utc_test_ner": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_test_ner.csv",
18
+ "utc_train_concate": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_train_concate.csv",
19
+ "utc_test_concate": "https://huggingface.co/datasets/mahdiyehebrahimi/utc/raw/main/utc_test_concate.csv",
20
  }
21
 
22
 
 
53
  """
54
  Return SplitGenerators.
55
  """
56
+ utc_train_text_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["utc_train_text"])
57
+ utc_test_text_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["utc_test_text"])
58
+ utc_train_ner_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["utc_train_ner"])
59
+ utc_test_ner_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["utc_test_ner"])
60
+ utc_train_concate_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["utc_train_concate"])
61
+ utc_test_concate_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["utc_test_concate"])
62
 
63
  return [
64
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": utc_train_text_path}),
65
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": utc_test_text_path}),
66
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": utc_train_ner_path}),
67
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": utc_test_ner_path}),
68
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": utc_train_concate_path}),
69
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": utc_test_concate_path}),
70
  ]
71
 
72
  # TODO