gililior commited on
Commit
6ff0504
1 Parent(s): 84bc4ab

Update README.md

Browse files

Hey, I've encountered an error when tried to download your dataset regarding the repo id and found that the repo type (i.e., dataset) should be passed as a parameter and not as part of the repo id

Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -14,14 +14,15 @@ You can read in WEC-Eng files as follows (using the **huggingface_hub** library)
14
  ```json
15
  from huggingface_hub import hf_hub_url, cached_download
16
  import json
17
- REPO_ID = "datasets/biu-nlp/WEC-Eng"
 
18
  splits_files = ["Dev_Event_gold_mentions_validated.json",
19
  "Test_Event_gold_mentions_validated.json",
20
  "Train_Event_gold_mentions.json"]
21
  wec_eng = list()
22
  for split_file in splits_files:
23
  wec_eng.append(json.load(open(cached_download(
24
- hf_hub_url(REPO_ID, split_file)), "r")))
25
  ```
26
 
27
  ## Dataset Structure
 
14
  ```json
15
  from huggingface_hub import hf_hub_url, cached_download
16
  import json
17
+ REPO_TYPE = "datasets"
18
+ REPO_ID = "biu-nlp/WEC-Eng"
19
  splits_files = ["Dev_Event_gold_mentions_validated.json",
20
  "Test_Event_gold_mentions_validated.json",
21
  "Train_Event_gold_mentions.json"]
22
  wec_eng = list()
23
  for split_file in splits_files:
24
  wec_eng.append(json.load(open(cached_download(
25
+ hf_hub_url(REPO_ID, split_file, repo_type="REPO_TYPE")), "r")))
26
  ```
27
 
28
  ## Dataset Structure