Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ language:
|
|
4 |
- en
|
5 |
---
|
6 |
|
7 |
-
A model for mapping abstract sentence descriptions to sentences that fit the descriptions. Use ```load_finetuned_model``` to load the query and sentence encoder, and ```encode_batch()``` to encode a sentence with the model.
|
8 |
|
9 |
```python
|
10 |
|
@@ -14,9 +14,9 @@ import torch
|
|
14 |
def load_finetuned_model():
|
15 |
|
16 |
|
17 |
-
sentence_encoder = AutoModel.from_pretrained("ravfogs/abstract-sim-
|
18 |
-
query_encoder = AutoModel.from_pretrained("ravfogs/abstract-sim-
|
19 |
-
tokenizer = AutoTokenizer.from_pretrained("ravfogs/abstract-sim-
|
20 |
|
21 |
return tokenizer, query_encoder, sentence_encoder
|
22 |
|
|
|
4 |
- en
|
5 |
---
|
6 |
|
7 |
+
A model for mapping abstract sentence descriptions to sentences that fit the descriptions. Trained on Wikipedia. Use ```load_finetuned_model``` to load the query and sentence encoder, and ```encode_batch()``` to encode a sentence with the model.
|
8 |
|
9 |
```python
|
10 |
|
|
|
14 |
def load_finetuned_model():
|
15 |
|
16 |
|
17 |
+
sentence_encoder = AutoModel.from_pretrained("ravfogs/abstract-sim-sentence")
|
18 |
+
query_encoder = AutoModel.from_pretrained("ravfogs/abstract-sim-query")
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained("ravfogs/abstract-sim-sentence")
|
20 |
|
21 |
return tokenizer, query_encoder, sentence_encoder
|
22 |
|