Update README.md
Browse files
README.md
CHANGED
|
@@ -68,9 +68,12 @@ This dataset is used for [LiveCC-7B-Base](https://huggingface.co/chenjoya/LiveCC
|
|
| 68 |
seeks = json.loads(readlastline('live_cc_5m_with_seeks.jsonl'))
|
| 69 |
|
| 70 |
# during data loader
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
| 74 |
```
|
| 75 |
|
| 76 |
- Videos: Due to 5M videos are too large, we are sorry that we cannot find way to share them. But,
|
|
|
|
| 68 |
seeks = json.loads(readlastline('live_cc_5m_with_seeks.jsonl'))
|
| 69 |
|
| 70 |
# during data loader
|
| 71 |
+
def __getitem(self, index):
|
| 72 |
+
...
|
| 73 |
+
with open('live_cc_5m_with_seeks.jsonl') as f:
|
| 74 |
+
f.seek(seeks[index])
|
| 75 |
+
datum = json.loads(f.readline())
|
| 76 |
+
...
|
| 77 |
```
|
| 78 |
|
| 79 |
- Videos: Due to 5M videos are too large, we are sorry that we cannot find way to share them. But,
|