whoisjones commited on
Commit
5965ea1
·
verified ·
1 Parent(s): 8e80f4e

Update fiNERweb.py

Browse files
Files changed (1) hide show
  1. fiNERweb.py +3 -3
fiNERweb.py CHANGED
@@ -17,6 +17,8 @@ _CITATION = """\
17
  }
18
  """
19
 
 
 
20
  # BCP-47 to ISO 639 mapping
21
  LANGUAGE_MAPPING = {
22
  "vie_Latn": "vi",
@@ -155,9 +157,7 @@ class fiNERweb(datasets.GeneratorBasedBuilder):
155
  )
156
 
157
  def _split_generators(self, dl_manager: datasets.DownloadManager):
158
- # If manual_dir is None, try to get the directory containing the script
159
- base_dir = os.path.dirname(os.path.abspath(__file__))
160
- data_dir = os.path.join(base_dir, self.config.language)
161
  return [
162
  datasets.SplitGenerator(
163
  name=datasets.Split.TRAIN,
 
17
  }
18
  """
19
 
20
+ _URL = "https://huggingface.co/datasets/whoisjones/fiNERweb/tree/main"
21
+
22
  # BCP-47 to ISO 639 mapping
23
  LANGUAGE_MAPPING = {
24
  "vie_Latn": "vi",
 
157
  )
158
 
159
  def _split_generators(self, dl_manager: datasets.DownloadManager):
160
+ filepath = dl_manager.download_and_extract(f"{_URL}/{self.config.language}")
 
 
161
  return [
162
  datasets.SplitGenerator(
163
  name=datasets.Split.TRAIN,