---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:478146
- loss:CoSENTLoss
widget:
- source_sentence: However, its underutilization is mainly due to the absence of a
concrete and coherent dissemination strategy.
sentences:
- At the same time, they need to understand that living in Europe brings great responsibilities
in addition to great benefits.
- 'The mainstay of any intelligent and patriotic mineral policy can be summed up
in the following postulate: "since minerals are exhaustible, they should only
be exploited with the maximum return for the economy of the country where they
are mined".'
- We must move quickly to a shared sustainable energy supply, sustainable transportation
and clean air.
- source_sentence: Their track record shows they do not support Australia<92>s traditional
industries because they are constantly pandering to the Greens.
sentences:
- An economic dynamic based on the sustainable development of national potential,
equitable access to the means of production, social justice, environmental conservation,
the incorporation of added value, the promotion of competitiveness and self-management,
- the cry "El campo no aguanta más" (The countryside can't take it anymore), of
the peasant movement and its proclamation of "Salvemos al Campo para salvar a
México" (Let's save the countryside to save Mexico);
- On the other hand, increasing defence capacity is directly related to the involvement
of all citizens in appropriate programmes, which, together with the acquisition
of skills, experience and organisation, also contribute to forging a spirit of
militancy and collectivity.
- source_sentence: We will prepare the proposals of the United Nations Declaration
on the Rights of the Child in line with the commitments made.
sentences:
- For the presentation of Czech culture, we will also use the upcoming major anniversaries
(100 years of the founding of Czechoslovakia, the 30th anniversary of the canonization
of Agnes of Bohemia, 600 years since the birth of George of Poděbrady, etc.).
- Separate prison units for young people should be established, and special rehabilitation
measures should be introduced in these units.
- Austrian citizenship is a valuable asset and should not become accessible to those
who do not abide by the laws of our state.
- source_sentence: Third, CD&V wants to strengthen the social sustainability of our
agriculture and horticulture sector.
sentences:
- We will take a farm-level approach where possible so that low-emissions farmers
are rewarded with a lower cost through the ETS, rather than the current approach
that assumes each cow, for instance, has the same emissions on every farm.
- In addition, 20 billion euros in tax revenues are fraudulently evaded every year
(the equivalent of the healthcare budget).
- 87 percent of arrested undocumented migrants are released sooner or later, but
without papers, in a lawless situation.
- source_sentence: This incites social hatred, threatens economic and social stability,
and undermines trust in the authorities.
sentences:
- ' The conditions for a healthy entrepreneurship, where the most innovative and
creative win and where the source of enrichment cannot be property speculation
or guilds and networks. '
- According to statistics from the Attorney General's Office, since February 2005,
when the implementation of the PSD was announced, the rate of violent deaths per
100,000 inhabitants has dropped from 26.41 in December 2005 to 18.43 in December
2007.
- As a result, the profits of the oligarchs are more than 400 times what our entire
country gets from the exploitation of natural resources.
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer
This is a [sentence-transformers](https://www.SBERT.net) model trained on the json 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.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Maximum Sequence Length:** 8192 tokens
- **Output Dimensionality:** 768 dimensions
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- json
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/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': 8192, 'do_lower_case': False}) with Transformer model: ModernBertModel
(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})
)
```
## 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("LequeuISIR/final-DPR-8e-05")
# Run inference
sentences = [
'This incites social hatred, threatens economic and social stability, and undermines trust in the authorities.',
'\xa0The conditions for a healthy entrepreneurship, where the most innovative and creative win and where the source of enrichment cannot be property speculation or guilds and networks. ',
'As a result, the profits of the oligarchs are more than 400 times what our entire country gets from the exploitation of natural resources.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Training Details
### Training Dataset
#### json
* Dataset: json
* Size: 478,146 training samples
* Columns: sentence1, sentence2, and label
* Approximate statistics based on the first 1000 samples:
| | sentence1 | sentence2 | label |
|:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------|
| type | string | string | int |
| details |
There have also been other important structural changes in the countryside, which have come together to form this new, as yet unknown, country. | Meanwhile, investment, which is the way to increase production, employment capacity and competitiveness of the economy, fell from 20% of output in 1974 to only 11.8% on average between 1984 and 1988. | 0 |
| Introduce new visa categories so we can be responsive to humanitarian needs and incentivise greater investment in our domestic infrastructure and regional economies | The purpose of the project is to design and implement public policies aimed at achieving greater and faster inclusion of immigrants. | 2 |
| and economic crimes that seriously and generally affect the fundamental rights of individuals and the international community as a whole. | For the first time in the history, not only of Ecuador, but of the entire world, a government promoted a public audit process of the foreign debt and declared some of its tranches illegitimate and immoral. | 0 |
* Loss: [CoSENTLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "pairwise_cos_sim"
}
```
### Evaluation Dataset
#### json
* Dataset: json
* Size: 478,146 evaluation samples
* Columns: sentence1, sentence2, and label
* Approximate statistics based on the first 1000 samples:
| | sentence1 | sentence2 | label |
|:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------|
| type | string | string | int |
| details | The anchoring of the Slovak Republic in the European Union allows citizens to feel: secure politically, secure economically, secure socially. | Radikale Venstre wants Denmark to participate fully and firmly in EU cooperation on immigration, asylum and cross-border crime. | 2 |
| Portugal's participation in the Community's negotiation of the next financial perspective should also be geared in the same direction. | Given the dynamic international framework, safeguarding the national interest requires adjustments to each of these vectors. | 2 |
| On asylum, the Green Party will: Dismantle the direct provision system and replace it with an efficient and humane system for determining the status of asylum seekers | The crisis in the coal sector subsequently forced these immigrant workers to move into other economic sectors such as metallurgy, chemicals, construction and transport. | 2 |
* Loss: [CoSENTLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "pairwise_cos_sim"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 64
- `per_device_eval_batch_size`: 64
- `learning_rate`: 8e-05
- `num_train_epochs`: 5
- `warmup_ratio`: 0.05
- `bf16`: True
- `batch_sampler`: no_duplicates
#### All Hyperparameters