Update README.md
#1
by
gililior
- opened
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 |
-
|
|
|
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
|