Downloads · 30 days
19
12% of all-time downloads
Jimmy-Ooi/Tyrisonase_test_model
Tyrisonase_test_model is a sentence similarity model from Jimmy-Ooi. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a sentence-transformers model finetuned from google-bert/bert-base-cased on the csv dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similari…
Downloads · 30 days
19
12% of all-time downloads
All-time downloads
161
Public
Parameters
108M
433 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors433 MB · 100%
From the Hugging Face model README
This is a sentence-transformers model finetuned from google-bert/bert-base-cased on the csv dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("Jimmy-Ooi/Tyrisonase_test_model")
# Run inference
sentences = [
'NC(=S)c1cccnc1',
'Cc1ccc(C(C)C)c(OC(=O)/C=C/c2ccc(O)cc2)c1',
'C/C(=N\\NC(N)=S)c1cccc(NC(=O)C(F)(F)F)c1',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.9019, 0.8925],
# [0.9019, 1.0000, 0.9356],
# [0.8925, 0.9356, 1.0000]])
<!--
### Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details>
-->
<!--
### Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details>
-->
<!--
### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->
<!--
## Bias, Risks and Limitations
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
-->
<!--
### Recommendations
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
-->
| premise | hypothesis | label | |
|---|---|---|---|
| type | string | string | int |
| details | <ul><li>min: 8 tokens</li><li>mean: 38.33 tokens</li><li>max: 213 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 37.78 tokens</li><li>max: 213 tokens</li></ul> | <ul><li>0: ~50.50%</li><li>2: ~49.50%</li></ul> |
| premise | hypothesis | label |
|---|---|---|
| <code>NC(=O)C@HNC(=O)OCc1cc(=O)c(O)co1</code> | <code>CNC(=S)N/N=C(\C)c1ccc(OC)cc1O</code> | <code>2</code> |
| <code>CC/C(=N\NC(N)=S)c1ccc(C2CCCCC2)cc1</code> | <code>COc1cccc(C(=O)N2CCN(Cc3ccc(F)cc3)CC2)c1</code> | <code>2</code> |
| <code>O=C(O)CSc1nnc(NC(=S)Nc2cccc(C(F)(F)F)c2)s1</code> | <code>CCCCOc1cccc2c1C(=O)c1c(OCCCC)cc(CO)cc1C2=O</code> | <code>0</code> |
| premise | hypothesis | label | |
|---|---|---|---|
| type | string | string | int |
| details | <ul><li>min: 8 tokens</li><li>mean: 38.78 tokens</li><li>max: 213 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 39.23 tokens</li><li>max: 213 tokens</li></ul> | <ul><li>0: ~47.40%</li><li>2: ~52.60%</li></ul> |
| premise | hypothesis | label |
|---|---|---|
| <code>O=Cc1ccoc1</code> | <code>Cn1c2ccccc2c2cc(/C=C/C(=O)c3cccc(NC(=O)c4ccccc4F)c3)ccc21</code> | <code>2</code> |
| <code>COc1cc(C=O)ccc1OC(=O)CN1CCN(C)CC1</code> | <code>Oc1ccc(O)cc1</code> | <code>2</code> |
| <code>O=C(c1cccc(N+[O-])c1)N1CCN(Cc2ccc(F)cc2)CC1</code> | <code>CNC(=S)N/N=C(\C)c1ccc(OC)cc1O</code> | <code>2</code> |
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->