Instructions to use hellonlp/simcse-roberta-base-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hellonlp/simcse-roberta-base-zh with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hellonlp/simcse-roberta-base-zh", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,7 +33,6 @@ print(embeddings.shape)
|
|
| 33 |
|
| 34 |
You can also compute the cosine similarities between two groups of sentences
|
| 35 |
```python
|
| 36 |
-
|
| 37 |
def get_similarity_two(sentence1, sentence2):
|
| 38 |
vec1 = get_vector_simcse(sentence1).tolist()
|
| 39 |
vec2 = get_vector_simcse(sentence2).tolist()
|
|
|
|
| 33 |
|
| 34 |
You can also compute the cosine similarities between two groups of sentences
|
| 35 |
```python
|
|
|
|
| 36 |
def get_similarity_two(sentence1, sentence2):
|
| 37 |
vec1 = get_vector_simcse(sentence1).tolist()
|
| 38 |
vec2 = get_vector_simcse(sentence2).tolist()
|