Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
1K<n<10K
Language Creators:
found
Annotations Creators:
expert-generated
Tags:
License:
fgrezes commited on
Commit
13669ed
1 Parent(s): 44884c9

clarified that repo needs to be cloned

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -43,18 +43,20 @@ How to compute your scores on the training data:
43
  1. If not already done, convert your predictions to a Huggingface dataset with the format described above.
44
  2. pass the references and predictions datasets to the `compute_MCC()` and `compute_seqeval()` function (from the `.py` files with the same names).
45
 
46
- How to load the data (assuming `./WIESP2022-NER-DEV.jsonl` is in the current directory, change as needed):
 
47
  - python (as list of dictionaries):
48
  ```
49
  import json
50
  with open("./WIESP2022-NER-DEV.jsonl", 'r') as f:
51
  wiesp_dev_json = [json.loads(l) for l in list(f)]
52
  ```
53
- - into Huggingface (as a Hugginface Dataset):
54
  ```
55
  from datasets import Dataset
56
  wiesp_dev_from_json = Dataset.from_json(path_or_paths="./WIESP2022-NER-DEV.jsonl")
57
  ```
 
58
 
59
  ## File list
60
  ```
 
43
  1. If not already done, convert your predictions to a Huggingface dataset with the format described above.
44
  2. pass the references and predictions datasets to the `compute_MCC()` and `compute_seqeval()` function (from the `.py` files with the same names).
45
 
46
+ How to load the data:
47
+ (assuming `./WIESP2022-NER-DEV.jsonl` is in the current directory, change as needed)
48
  - python (as list of dictionaries):
49
  ```
50
  import json
51
  with open("./WIESP2022-NER-DEV.jsonl", 'r') as f:
52
  wiesp_dev_json = [json.loads(l) for l in list(f)]
53
  ```
54
+ - into Huggingface (as a Huggingface Dataset):
55
  ```
56
  from datasets import Dataset
57
  wiesp_dev_from_json = Dataset.from_json(path_or_paths="./WIESP2022-NER-DEV.jsonl")
58
  ```
59
+ (NOTE: currently loading from the Huggingface Dataset Hub directly does not work. You need to clone the repository locally)
60
 
61
  ## File list
62
  ```