Update README.md
Browse files
README.md
CHANGED
@@ -9,13 +9,18 @@ The original data from http://sbert.net/datasets/simplewiki-2020-11-01.jsonl.gz.
|
|
9 |
We use `nq_distilbert-base-v1` model encode all the data to the PyTorch Tensors. And `normalize` the embeddings by using `sentence_transformers.util.normalize_embeddings`.
|
10 |
|
11 |
|
|
|
|
|
12 |
```python
|
13 |
!pip install sentence-transformers==2.3.1
|
14 |
```
|
15 |
|
|
|
16 |
|
17 |
```python
|
18 |
|
|
|
|
|
19 |
import os
|
20 |
import json
|
21 |
import gzip
|
|
|
9 |
We use `nq_distilbert-base-v1` model encode all the data to the PyTorch Tensors. And `normalize` the embeddings by using `sentence_transformers.util.normalize_embeddings`.
|
10 |
|
11 |
|
12 |
+
## Installing the package
|
13 |
+
|
14 |
```python
|
15 |
!pip install sentence-transformers==2.3.1
|
16 |
```
|
17 |
|
18 |
+
## The codeing part
|
19 |
|
20 |
```python
|
21 |
|
22 |
+
# the whole process takes 1287.0s GPU P100
|
23 |
+
|
24 |
import os
|
25 |
import json
|
26 |
import gzip
|