Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: sentence-similarity
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
tags:
|
| 5 |
+
- sentence-transformers
|
| 6 |
+
- feature-extraction
|
| 7 |
+
- sentence-similarity
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# kornwtp/ConGen-MiniLM-L6
|
| 12 |
+
|
| 13 |
+
This is a [ConGen](https://github.com/KornWtp/ConGen) model: It maps sentences to a 384 dimensional dense vector space and can be used for tasks like semantic search.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
Using this model becomes easy when you have [ConGen](https://github.com/KornWtp/ConGen) installed:
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
pip install -U git+https://github.com/KornWtp/ConGen.git
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Then you can use the model like this:
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from sentence_transformers import SentenceTransformer
|
| 29 |
+
sentences = ["This is an example sentence", "Each sentence is converted"]
|
| 30 |
+
|
| 31 |
+
model = SentenceTransformer('kornwtp/ConGen-MiniLM-L6')
|
| 32 |
+
embeddings = model.encode(sentences)
|
| 33 |
+
print(embeddings)
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
## Evaluation Results
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [Semantic Textual Similarity](https://github.com/KornWtp/ConGen#main-results---sts)
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
## Citing & Authors
|
| 46 |
+
|
| 47 |
+
```bibtex
|
| 48 |
+
@inproceedings{limkonchotiwat-etal-2022-congen,
|
| 49 |
+
title = "{ConGen}: Unsupervised Control and Generalization Distillation For Sentence Representation",
|
| 50 |
+
author = "Limkonchotiwat, Peerat and
|
| 51 |
+
Ponwitayarat, Wuttikorn and
|
| 52 |
+
Lowphansirikul, Lalita and
|
| 53 |
+
Udomcharoenchaikit, Can and
|
| 54 |
+
Chuangsuwanich, Ekapol and
|
| 55 |
+
Nutanong, Sarana",
|
| 56 |
+
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2022",
|
| 57 |
+
year = "2022",
|
| 58 |
+
publisher = "Association for Computational Linguistics",
|
| 59 |
+
}
|
| 60 |
+
```
|