Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Portuguese
bert
feature-extraction
Eval Results (legacy)
text-embeddings-inference
Instructions to use rufimelo/Legal-BERTimbau-sts-base-ma-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rufimelo/Legal-BERTimbau-sts-base-ma-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rufimelo/Legal-BERTimbau-sts-base-ma-v2") sentences = [ "O advogado apresentou as provas ao juíz.", "O juíz leu as provas.", "O juíz leu o recurso.", "O juíz atirou uma pedra." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use rufimelo/Legal-BERTimbau-sts-base-ma-v2 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("rufimelo/Legal-BERTimbau-sts-base-ma-v2") model = AutoModel.from_pretrained("rufimelo/Legal-BERTimbau-sts-base-ma-v2") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -146,7 +146,9 @@ SentenceTransformer(
|
|
| 146 |
|
| 147 |
## Citing & Authors
|
| 148 |
|
| 149 |
-
|
|
|
|
|
|
|
| 150 |
|
| 151 |
```bibtex
|
| 152 |
@inproceedings{souza2020bertimbau,
|
|
@@ -157,4 +159,28 @@ If you use this work, please cite BERTimbau's work:
|
|
| 157 |
booktitle = {9th Brazilian Conference on Intelligent Systems, {BRACIS}, Rio Grande do Sul, Brazil, October 20-23 (to appear)},
|
| 158 |
year = {2020}
|
| 159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
```
|
|
|
|
| 146 |
|
| 147 |
## Citing & Authors
|
| 148 |
|
| 149 |
+
## Citing & Authors
|
| 150 |
+
|
| 151 |
+
If you use this work, please cite:
|
| 152 |
|
| 153 |
```bibtex
|
| 154 |
@inproceedings{souza2020bertimbau,
|
|
|
|
| 159 |
booktitle = {9th Brazilian Conference on Intelligent Systems, {BRACIS}, Rio Grande do Sul, Brazil, October 20-23 (to appear)},
|
| 160 |
year = {2020}
|
| 161 |
}
|
| 162 |
+
|
| 163 |
+
@inproceedings{fonseca2016assin,
|
| 164 |
+
title={ASSIN: Avaliacao de similaridade semantica e inferencia textual},
|
| 165 |
+
author={Fonseca, E and Santos, L and Criscuolo, Marcelo and Aluisio, S},
|
| 166 |
+
booktitle={Computational Processing of the Portuguese Language-12th International Conference, Tomar, Portugal},
|
| 167 |
+
pages={13--15},
|
| 168 |
+
year={2016}
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
@inproceedings{real2020assin,
|
| 172 |
+
title={The assin 2 shared task: a quick overview},
|
| 173 |
+
author={Real, Livy and Fonseca, Erick and Oliveira, Hugo Goncalo},
|
| 174 |
+
booktitle={International Conference on Computational Processing of the Portuguese Language},
|
| 175 |
+
pages={406--412},
|
| 176 |
+
year={2020},
|
| 177 |
+
organization={Springer}
|
| 178 |
+
}
|
| 179 |
+
@InProceedings{huggingface:dataset:stsb_multi_mt,
|
| 180 |
+
title = {Machine translated multilingual STS benchmark dataset.},
|
| 181 |
+
author={Philip May},
|
| 182 |
+
year={2021},
|
| 183 |
+
url={https://github.com/PhilipMay/stsb-multi-mt}
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
```
|