slinusc commited on
Commit
b3a0be0
·
verified ·
1 Parent(s): c862062

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -25
README.md CHANGED
@@ -84,31 +84,6 @@ print(dataset)
84
 
85
  # Inspect column names in the “train” split
86
  print(dataset["train"].column_names)
87
- ```
88
-
89
- By default, the single CSV is assigned a “train” split. You can then filter or sample by `context_range`:
90
-
91
- ```python
92
- # Example: count examples per bucket
93
- from collections import Counter
94
- counts = Counter(dataset["train"]["context_range"])
95
- print(counts) # e.g., {'3k': 100, '4k': 100, '8k': 100, '16k': 100, '32k': 100}
96
-
97
- # Filter to only 16k‐token contexts
98
- ds_16k = dataset["train"].filter(lambda x: x["context_range"] == "16k")
99
- print(len(ds_16k))
100
- ```
101
-
102
- If you have downloaded `longbench_all_buckets_100.csv` locally, you can also load it via:
103
-
104
- ```python
105
- from datasets import load_dataset
106
-
107
- dataset = load_dataset("csv", data_files="longbench_all_buckets_100.csv")
108
- print(dataset["train"].column_names)
109
- ```
110
-
111
- After loading, each row will expose the fields:
112
 
113
  ```
114
  ["context", "question", "answer", "length", "dataset", "context_range"]
 
84
 
85
  # Inspect column names in the “train” split
86
  print(dataset["train"].column_names)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  ```
89
  ["context", "question", "answer", "length", "dataset", "context_range"]