saattrupdan commited on
Commit
5ece719
1 Parent(s): 7962044

chore: Move data files back, use _BASE_URL

Browse files
data/{da/da.jsonl → da.jsonl} RENAMED
File without changes
data/{fo/fo.jsonl → fo.jsonl} RENAMED
File without changes
data/{is/is.jsonl → is.jsonl} RENAMED
File without changes
data/{nb/nb.jsonl → nb.jsonl} RENAMED
File without changes
data/{nn/nn.jsonl → nn.jsonl} RENAMED
File without changes
data/{sv/sv.jsonl → sv.jsonl} RENAMED
File without changes
scandi_wiki.py CHANGED
@@ -32,14 +32,9 @@ Norwegian Nynorsk, Swedish, Icelandic and Faroese Wikipedia corpora, as of Janua
32
  """
33
 
34
  _LICENSE = "CC BY-SA 4.0"
35
- _URLS = {
36
- "da": "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/da/da.jsonl",
37
- "sv": "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/sv/sv.jsonl",
38
- "nb": "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/nb/nb.jsonl",
39
- "nn": "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/nn/nn.jsonl",
40
- "is": "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/is/is.jsonl",
41
- "fo": "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/fo/fo.jsonl",
42
- }
43
 
44
  # _CITATION = """
45
  # @InProceedings{huggingface:dataset,
@@ -100,13 +95,13 @@ class ScandiWiki(GeneratorBasedBuilder):
100
  return DatasetInfo(
101
  description=_DESCRIPTION,
102
  features=features,
103
- # homepage=_HOMEPAGE,
104
  license=_LICENSE,
 
105
  # citation=_CITATION,
106
  )
107
 
108
  def _split_generators(self, dl_manager: DownloadManager) -> List[SplitGenerator]:
109
- url = _URLS[self.config.name]
110
  downloaded_file = dl_manager.download_and_extract(url)
111
  return [
112
  SplitGenerator(
 
32
  """
33
 
34
  _LICENSE = "CC BY-SA 4.0"
35
+ _BASE_URL = (
36
+ "https://huggingface.co/datasets/alexandrainst/scandi-wiki/resolve/main/data/"
37
+ )
 
 
 
 
 
38
 
39
  # _CITATION = """
40
  # @InProceedings{huggingface:dataset,
 
95
  return DatasetInfo(
96
  description=_DESCRIPTION,
97
  features=features,
 
98
  license=_LICENSE,
99
+ # homepage=_HOMEPAGE,
100
  # citation=_CITATION,
101
  )
102
 
103
  def _split_generators(self, dl_manager: DownloadManager) -> List[SplitGenerator]:
104
+ url = f"{_BASE_URL}/{self.config.name}.jsonl"
105
  downloaded_file = dl_manager.download_and_extract(url)
106
  return [
107
  SplitGenerator(