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
Update README.md
#3
by HamidBekam - opened
README.md
CHANGED
|
@@ -14,13 +14,16 @@ tags:
|
|
| 14 |
|
| 15 |
### Aalborg University Business School, AI: Growth-Lab
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
https://github.com/AI-Growth-Lab/PatentSBERTa
|
| 20 |
|
| 21 |
|
| 22 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
<!--- Describe your model here -->
|
| 25 |
|
| 26 |
## Usage (Sentence-Transformers)
|
|
|
|
| 14 |
|
| 15 |
### Aalborg University Business School, AI: Growth-Lab
|
| 16 |
|
| 17 |
+
|
| 18 |
|
| 19 |
https://github.com/AI-Growth-Lab/PatentSBERTa
|
| 20 |
|
| 21 |
|
| 22 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 23 |
|
| 24 |
+
## Citing & Authors
|
| 25 |
+
|
| 26 |
+
Bekamiri, H., Hain, D. S., & Jurowetzki, R. (2024). PatentSBERTa: A deep NLP based hybrid model for patent distance and classification using augmented SBERT. Technological Forecasting and Social Change, 206, 123536.
|
| 27 |
<!--- Describe your model here -->
|
| 28 |
|
| 29 |
## Usage (Sentence-Transformers)
|