---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- dense
- generated_from_trainer
- dataset_size:2633
- loss:MultipleNegativesRankingLoss
- dataset_size:7861
base_model: AI-Growth-Lab/PatentSBERTa
widget:
- source_sentence: CONSORTIUM OF PROBIOTICS.
sentences:
- NANOSTRUCTURED FILTERING MEMBRANE FOR ANALYTICAL APPLICATIONS.
- CONSORTIUM OF PROBIOTICS.
- Real-time communications over Bluetooth Low Energy.
- source_sentence: Device for the collection and analysis of a biological fluid.
sentences:
- Device for the collection and analysis of a biological fluid.
- STED MICROSCOPY BASED ON SYNCHRONOUS DETECTION OF FLUORESCENCE EMISSION.
- Robotic apparatus for minimally invasive surgery.
- source_sentence: Method for obtaining a porous semiconductor.
sentences:
- 'Racetrack Logic: smart in-memory computing.'
- Method for obtaining a porous semiconductor.
- Salts of benzimidazole compounds, their use and synthetic preparation.
- source_sentence: Enthalpy exchangers with polymeric membrane.
sentences:
- Closure system for engine connecting rods.
- Enthalpy exchangers with polymeric membrane.
- Soluble protein with high angiogenic activity.
- source_sentence: FLEXIBLE CAPACITIVE KEYBOARD FOR TEXTILE USE.
sentences:
- 'GreenValve III: System for spherical segment valves.'
- FLEXIBLE CAPACITIVE KEYBOARD FOR TEXTILE USE.
- Mandibular advancement device.
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on AI-Growth-Lab/PatentSBERTa
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [AI-Growth-Lab/PatentSBERTa](https://huggingface.co/AI-Growth-Lab/PatentSBERTa). 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.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [AI-Growth-Lab/PatentSBERTa](https://huggingface.co/AI-Growth-Lab/PatentSBERTa)
- **Maximum Sequence Length:** 384 tokens
- **Output Dimensionality:** 768 dimensions
- **Similarity Function:** Cosine Similarity
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 384, 'do_lower_case': False, 'architecture': 'MPNetModel'})
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'FLEXIBLE CAPACITIVE KEYBOARD FOR TEXTILE USE.',
'FLEXIBLE CAPACITIVE KEYBOARD FOR TEXTILE USE.',
'GreenValve III: System for spherical segment valves.',
]
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, 1.0000, 0.3686],
# [1.0000, 1.0000, 0.3686],
# [0.3686, 0.3686, 1.0000]])
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 7,861 training samples
* Columns: sentence_0 and sentence_1
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string |
| details |
Genetic diagnostic technique for SCA1-3,6,7 | Applicant/Organization: UNIV DEGLI STUDI DI TORINO |
| Method for detecting Macrophomina phaseolina | Technical Classification: C12Q |
| System for controlled administration of a substance from a human -body-implanted infusion device | Applicant/Organization: Stefanini Cesare |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 12
- `per_device_eval_batch_size`: 12
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters