readme
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ You can stream the dataset for example like this:
|
|
| 27 |
```python
|
| 28 |
from datasets import load_dataset
|
| 29 |
|
| 30 |
-
dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", split="
|
| 31 |
|
| 32 |
for row in dataset:
|
| 33 |
print(row)
|
|
@@ -58,13 +58,21 @@ The format is the following:
|
|
| 58 |
- "qrels": Relevance annotations for the 215 annotated queries by NIST
|
| 59 |
|
| 60 |
### JSONL
|
| 61 |
-
The folder `queries_jsonl/` contains the queries
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
### Parquet
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
```python
|
| 65 |
from datasets import load_dataset
|
| 66 |
|
| 67 |
-
dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", split="
|
| 68 |
|
| 69 |
for row in dataset:
|
| 70 |
print(row)
|
|
|
|
| 27 |
```python
|
| 28 |
from datasets import load_dataset
|
| 29 |
|
| 30 |
+
dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", "passages", split="train", streaming=True)
|
| 31 |
|
| 32 |
for row in dataset:
|
| 33 |
print(row)
|
|
|
|
| 58 |
- "qrels": Relevance annotations for the 215 annotated queries by NIST
|
| 59 |
|
| 60 |
### JSONL
|
| 61 |
+
The folder `queries_jsonl/` contains the queries in a `.jsonl.gz` format.
|
| 62 |
+
|
| 63 |
+
Load this .jsonl.gz format is significantly faster than the parquet file.
|
| 64 |
+
|
| 65 |
+
|
| 66 |
### Parquet
|
| 67 |
|
| 68 |
+
If you want to use the parquet file or the HF datasets library, the folder `queries_parquet/` contains the respective parquet file.
|
| 69 |
+
|
| 70 |
+
You can load the queries with the following command in HF datasets
|
| 71 |
+
|
| 72 |
```python
|
| 73 |
from datasets import load_dataset
|
| 74 |
|
| 75 |
+
dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", "queries", split="test", streaming=True)
|
| 76 |
|
| 77 |
for row in dataset:
|
| 78 |
print(row)
|