
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# bart_es_keys

This model is a fine-tuned version of [vgaraujov/bart-base-spanish](https://huggingface.co/vgaraujov/bart-base-spanish).
It achieves the following results on the evaluation set:
- Loss: 1.3818
- Rouge1: 63.6736
- Rouge2: 37.301
- Rougel: 63.0481
- Rougelsum: 62.97
- Gen Len: 7.6

## Model description

This checkpoint extracts keywords or context from emergency transcribed calls.
Add the prefix "summarize: " before a test text to see the checkpoint's responses.

## Intended uses & limitations

Under privacy agreement.

## Training and evaluation data

Training data used has been provided by the ECU 911 service under a strict confidentiality agreement.

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 7

### Training results

| Training Loss | Epoch | Step | Validation Loss | Rouge1  | Rouge2  | Rougel  | Rougelsum | Gen Len |
|:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|:-------:|:---------:|:-------:|
| 2.4822        | 1.0   | 50   | 1.5713          | 51.0101 | 26.2004 | 50.4041 | 50.4791   | 7.33    |
| 1.5446        | 2.0   | 100  | 1.4584          | 57.2195 | 31.0281 | 56.4802 | 56.4801   | 7.75    |
| 1.2388        | 3.0   | 150  | 1.3971          | 61.0085 | 34.3564 | 60.1558 | 60.1153   | 7.84    |
| 1.0489        | 4.0   | 200  | 1.3611          | 62.0307 | 35.323  | 61.3034 | 61.1902   | 7.53    |
| 0.8992        | 5.0   | 250  | 1.3973          | 62.8046 | 37.3484 | 62.2618 | 62.2231   | 7.845   |
| 0.8357        | 6.0   | 300  | 1.3836          | 63.2165 | 36.9899 | 62.7019 | 62.5911   | 7.825   |
| 0.7731        | 7.0   | 350  | 1.3818          | 63.6736 | 37.301  | 63.0481 | 62.97     | 7.6     |


### Framework versions

- Transformers 4.35.2
- Pytorch 2.1.0+cu121
- Datasets 2.16.1
- Tokenizers 0.15.0
{"language": ["es"], "license": "other", "library_name": "transformers", "tags": ["generated_from_trainer"], "metrics": ["rouge"], "base_model": "vgaraujov/bart-base-spanish", "pipeline_tag": "summarization", "widget": [{"text": "summarize: Operador: 911, \u00bfcu\u00e1l es su emergencia? \nPersona: \u00a1Ayuda! Mi casa est\u00e1 en llamas.\nOperador: \u00bfMant\u00e9ngase calmado. \u00bfHay alguien atrapado dentro? \nPersona: S\u00ed, mi esposa y mis dos hijos est\u00e1n en el segundo piso. \nOperador: \u00bfPuede salir de la casa? \nPersona: No, el fuego est\u00e1 bloqueando la salida. \nOperador: No se preocupe, la ayuda est\u00e1 en camino. \u00bfEn qu\u00e9 direcci\u00f3n se encuentra? \nPersona: Estoy en la calle Mayor, n\u00famero 123. \nOperador: \u00bfEs un edificio de apartamentos o una casa unifamiliar? \nPersona: Es una casa unifamiliar. \nOperador: \u00bfHay algo m\u00e1s que deba saber? \nPersona: No, solo vengan r\u00e1pido. \nOperador: No se preocupe, ya est\u00e1n en camino. Mantenga la calma y siga las instrucciones de los bomberos cuando lleguen. \nPersona:\u00a0Gracias.", "example_title": "Example 1"}, {"text": "summarize: Buenas noches, ayuda por favor a mi pap\u00e1 le est\u00e1n dando convulsiones y no puede respirar.", "example_title": "Example 2"}], "model-index": [{"name": "bart_es_keys", "results": []}]}
transformers tensorboard safetensors bart text2text-generation generated_from_trainer summarization es base_model:vgaraujov/bart-base-spanish license:other autotrain_compatible endpoints_compatible region:us