Update README.md
Browse files
README.md
CHANGED
|
@@ -70,41 +70,6 @@ Copy code
|
|
| 70 |
|
| 71 |
---
|
| 72 |
|
| 73 |
-
## Loading
|
| 74 |
-
|
| 75 |
-
### Using Hugging Face datasets
|
| 76 |
-
|
| 77 |
-
from datasets import load_dataset
|
| 78 |
-
ds = load_dataset("<username>/<dataset_name>")
|
| 79 |
-
print(ds["train"][0])
|
| 80 |
-
|
| 81 |
-
shell
|
| 82 |
-
Copy code
|
| 83 |
-
|
| 84 |
-
### Loading Parquet directly
|
| 85 |
-
|
| 86 |
-
from datasets import Dataset
|
| 87 |
-
train = Dataset.from_parquet("math_stackexchange_train.parquet")
|
| 88 |
-
val = Dataset.from_parquet("math_stackexchange_val.parquet")
|
| 89 |
-
test = Dataset.from_parquet("math_stackexchange_test.parquet")
|
| 90 |
-
|
| 91 |
-
yaml
|
| 92 |
-
Copy code
|
| 93 |
-
|
| 94 |
-
---
|
| 95 |
-
|
| 96 |
-
## Convert tags to list
|
| 97 |
-
|
| 98 |
-
def split_tags(s):
|
| 99 |
-
if not s:
|
| 100 |
-
return []
|
| 101 |
-
return [t for t in s.strip("|").split("|") if t]
|
| 102 |
-
|
| 103 |
-
yaml
|
| 104 |
-
Copy code
|
| 105 |
-
|
| 106 |
-
---
|
| 107 |
-
|
| 108 |
## License & Attribution
|
| 109 |
|
| 110 |
License: CC BY-SA 4.0
|
|
|
|
| 70 |
|
| 71 |
---
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
## License & Attribution
|
| 74 |
|
| 75 |
License: CC BY-SA 4.0
|