Sentence Similarity
sentence-transformers
ONNX
Safetensors
Transformers
Vietnamese
roberta
feature-extraction
phobert
vietnamese
sentence-embedding
Instructions to use dangvantuan/vietnamese-embedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use dangvantuan/vietnamese-embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("dangvantuan/vietnamese-embedding") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use dangvantuan/vietnamese-embedding with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("dangvantuan/vietnamese-embedding") model = AutoModel.from_pretrained("dangvantuan/vietnamese-embedding", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -61,7 +61,7 @@ print(embeddings)
|
|
| 61 |
|
| 62 |
|
| 63 |
## Evaluation
|
| 64 |
-
The model can be evaluated as follows on the Vienamese data of stsb.
|
| 65 |
|
| 66 |
```python
|
| 67 |
from sentence_transformers import SentenceTransformer
|
|
@@ -107,7 +107,7 @@ The performance is measured using Pearson and Spearman correlation:
|
|
| 107 |
| [keepitreal/vietnamese-sbert](https://huggingface.co/keepitreal/vietnamese-sbert) | 84.51 | 84.44|135M |
|
| 108 |
| [bkai-foundation-models/vietnamese-bi-encoder](https://huggingface.co/bkai-foundation-models/vietnamese-bi-encoder) | 78.05 | 77.94|135M |
|
| 109 |
|
| 110 |
-
### Metric for all dataset of [Semantic Textual Similarity on STS Benchmark](https://huggingface.co/datasets/
|
| 111 |
You can run an evaluation on this [Colab](https://colab.research.google.com/drive/1JZLWKiknSUnA92UY2RIhvS65WtP6sgqW?hl=fr#scrollTo=IkTAwPqxDTOK)
|
| 112 |
|
| 113 |
**Pearson score**
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
## Evaluation
|
| 64 |
+
The model can be evaluated as follows on the [Vienamese data of stsb](https://huggingface.co/datasets/doanhieung/vi-stsbenchmark).
|
| 65 |
|
| 66 |
```python
|
| 67 |
from sentence_transformers import SentenceTransformer
|
|
|
|
| 107 |
| [keepitreal/vietnamese-sbert](https://huggingface.co/keepitreal/vietnamese-sbert) | 84.51 | 84.44|135M |
|
| 108 |
| [bkai-foundation-models/vietnamese-bi-encoder](https://huggingface.co/bkai-foundation-models/vietnamese-bi-encoder) | 78.05 | 77.94|135M |
|
| 109 |
|
| 110 |
+
### Metric for all dataset of [Semantic Textual Similarity on STS Benchmark](https://huggingface.co/datasets/anti-ai/ViSTS)
|
| 111 |
You can run an evaluation on this [Colab](https://colab.research.google.com/drive/1JZLWKiknSUnA92UY2RIhvS65WtP6sgqW?hl=fr#scrollTo=IkTAwPqxDTOK)
|
| 112 |
|
| 113 |
**Pearson score**
|