Update README.md (#1)
Browse files- Update README.md (06a0a3980e618f21ade4ab31a11a6d0579af6a52)
Co-authored-by: Lucy Li <[email protected]>
README.md
CHANGED
@@ -80,6 +80,20 @@ Within `standards.jsonl`, each line is a standard, sub-standard, cluster, domain
|
|
80 |
}
|
81 |
```
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
## Citation
|
84 |
|
85 |
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
|
|
80 |
}
|
81 |
```
|
82 |
|
83 |
+
After downloading each file, you can load them:
|
84 |
+
|
85 |
+
```
|
86 |
+
import json
|
87 |
+
with open('domain_groups.json', 'r') as infile:
|
88 |
+
domain_groups = json.load(infile)
|
89 |
+
print(domain_groups.keys()) # should print the keys of this dictionary
|
90 |
+
|
91 |
+
with open('standards.jsonl', 'r') as infile:
|
92 |
+
for line in infile:
|
93 |
+
this_standard = json.loads(line)
|
94 |
+
print(this_standard['id']) # should print the ID of the row in this file
|
95 |
+
```
|
96 |
+
|
97 |
## Citation
|
98 |
|
99 |
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|