Instructions to use johngiorgi/declutr-sci-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use johngiorgi/declutr-sci-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("johngiorgi/declutr-sci-base") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Commit ·
90280e4
1
Parent(s): 02e28f9
Update bibtext to ACL version
Browse files
README.md
CHANGED
|
@@ -80,11 +80,16 @@ semantic_sim = 1 - cosine(embeddings[0], embeddings[1])
|
|
| 80 |
### BibTeX entry and citation info
|
| 81 |
|
| 82 |
```bibtex
|
| 83 |
-
@
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
```
|
|
|
|
| 80 |
### BibTeX entry and citation info
|
| 81 |
|
| 82 |
```bibtex
|
| 83 |
+
@inproceedings{giorgi-etal-2021-declutr,
|
| 84 |
+
title = {{D}e{CLUTR}: Deep Contrastive Learning for Unsupervised Textual Representations},
|
| 85 |
+
author = {Giorgi, John and Nitski, Osvald and Wang, Bo and Bader, Gary},
|
| 86 |
+
year = 2021,
|
| 87 |
+
month = aug,
|
| 88 |
+
booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
|
| 89 |
+
publisher = {Association for Computational Linguistics},
|
| 90 |
+
address = {Online},
|
| 91 |
+
pages = {879--895},
|
| 92 |
+
doi = {10.18653/v1/2021.acl-long.72},
|
| 93 |
+
url = {https://aclanthology.org/2021.acl-long.72}
|
| 94 |
}
|
| 95 |
```
|