update hf datasets example
Browse files
README.md
CHANGED
@@ -22,8 +22,8 @@ dataset_info:
|
|
22 |
sequence: string
|
23 |
splits:
|
24 |
- name: test
|
25 |
-
num_bytes:
|
26 |
-
num_examples:
|
27 |
train-eval-index:
|
28 |
- config: default
|
29 |
task: sentence-similarity
|
@@ -67,10 +67,16 @@ A dataset in a [nixietune](https://github.com/nixiesearch/nixietune) compatible
|
|
67 |
|
68 |
## Usage
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
```python
|
71 |
from datasets import load_dataset
|
72 |
|
73 |
-
data = load_dataset('nixiesearch/beir-eval-
|
74 |
print(data["test"].features)
|
75 |
```
|
76 |
|
|
|
22 |
sequence: string
|
23 |
splits:
|
24 |
- name: test
|
25 |
+
num_bytes: 226515502
|
26 |
+
num_examples: 3679
|
27 |
train-eval-index:
|
28 |
- config: default
|
29 |
task: sentence-similarity
|
|
|
67 |
|
68 |
## Usage
|
69 |
|
70 |
+
To use with HF datasets:
|
71 |
+
|
72 |
+
```bash
|
73 |
+
pip install datasets zstandard
|
74 |
+
```
|
75 |
+
|
76 |
```python
|
77 |
from datasets import load_dataset
|
78 |
|
79 |
+
data = load_dataset('nixiesearch/beir-eval-hard-negatives')
|
80 |
print(data["test"].features)
|
81 |
```
|
82 |
|