Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Instructions to use AI-Growth-Lab/PatentSBERTa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AI-Growth-Lab/PatentSBERTa with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AI-Growth-Lab/PatentSBERTa") 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] - Transformers
How to use AI-Growth-Lab/PatentSBERTa with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AI-Growth-Lab/PatentSBERTa") model = AutoModel.from_pretrained("AI-Growth-Lab/PatentSBERTa") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
3ff1d55
1
Parent(s): 7550939
Update README.md
Browse files
README.md
CHANGED
|
@@ -129,9 +129,11 @@ SentenceTransformer(
|
|
| 129 |
|
| 130 |
## Citing & Authors
|
| 131 |
|
|
|
|
| 132 |
@article{bekamiri2021patentsberta,
|
| 133 |
title={PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT},
|
| 134 |
author={Bekamiri, Hamid and Hain, Daniel S and Jurowetzki, Roman},
|
| 135 |
journal={arXiv preprint arXiv:2103.11933},
|
| 136 |
year={2021}
|
| 137 |
-
}
|
|
|
|
|
|
| 129 |
|
| 130 |
## Citing & Authors
|
| 131 |
|
| 132 |
+
```LaTeX
|
| 133 |
@article{bekamiri2021patentsberta,
|
| 134 |
title={PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT},
|
| 135 |
author={Bekamiri, Hamid and Hain, Daniel S and Jurowetzki, Roman},
|
| 136 |
journal={arXiv preprint arXiv:2103.11933},
|
| 137 |
year={2021}
|
| 138 |
+
}
|
| 139 |
+
```
|