Commit ·
34cca28
1
Parent(s): a840831
update readme
Browse files
README.md
CHANGED
|
@@ -1 +1,11 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```python
|
| 2 |
+
import ast
|
| 3 |
+
|
| 4 |
+
def parse_terms(example):
|
| 5 |
+
example["terms"] = ast.literal_eval(example["terms"])
|
| 6 |
+
return example
|
| 7 |
+
|
| 8 |
+
dataset_dict["train"] = dataset_dict["train"].map(parse_terms)
|
| 9 |
+
dataset_dict["validation"] = dataset_dict["validation"].map(parse_terms)
|
| 10 |
+
dataset_dict["test"] = dataset_dict["test"].map(parse_terms)
|
| 11 |
+
```
|