mrm8488 / bert2bert_shared-spanish-finetuned-summarization

huggingface.co
Total runs: 821
24-hour runs: 39
7-day runs: 218
30-day runs: 283
Model's Last Updated: May 03 2023
summarization

Introduction of bert2bert_shared-spanish-finetuned-summarization

Model Details of bert2bert_shared-spanish-finetuned-summarization

Spanish BERT2BERT (BETO) fine-tuned on MLSUM ES for summarization

Model

dccuchile/bert-base-spanish-wwm-cased (BERT Checkpoint)

Dataset

MLSUM is the first large-scale MultiLingual SUMmarization dataset. Obtained from online newspapers, it contains 1.5M+ article/summary pairs in five different languages -- namely, French, German, Spanish , Russian, Turkish. Together with English newspapers from the popular CNN/Daily mail dataset, the collected data form a large scale multilingual dataset which can enable new research directions for the text summarization community. We report cross-lingual comparative analyses based on state-of-the-art systems. These highlight existing biases which motivate the use of a multi-lingual dataset.

MLSUM es

Results
Set Metric Value
Test Rouge2 - mid -precision 9.6
Test Rouge2 - mid - recall 8.4
Test Rouge2 - mid - fmeasure 8.7
Test Rouge1 26.24
Test Rouge2 8.9
Test RougeL 21.01
Test RougeLsum 21.02
Usage
import torch
from transformers import BertTokenizerFast, EncoderDecoderModel
device = 'cuda' if torch.cuda.is_available() else 'cpu'
ckpt = 'mrm8488/bert2bert_shared-spanish-finetuned-summarization'
tokenizer = BertTokenizerFast.from_pretrained(ckpt)
model = EncoderDecoderModel.from_pretrained(ckpt).to(device)

def generate_summary(text):

   inputs = tokenizer([text], padding="max_length", truncation=True, max_length=512, return_tensors="pt")
   input_ids = inputs.input_ids.to(device)
   attention_mask = inputs.attention_mask.to(device)
   output = model.generate(input_ids, attention_mask=attention_mask)
   return tokenizer.decode(output[0], skip_special_tokens=True)
   
text = "Your text here..."
generate_summary(text)

Created by Manuel Romero/@mrm8488 with the support of Narrativa

Made with in Spain

Runs of mrm8488 bert2bert_shared-spanish-finetuned-summarization on huggingface.co

821
Total runs
39
24-hour runs
49
3-day runs
218
7-day runs
283
30-day runs

More Information About bert2bert_shared-spanish-finetuned-summarization huggingface.co Model

bert2bert_shared-spanish-finetuned-summarization huggingface.co

bert2bert_shared-spanish-finetuned-summarization huggingface.co is an AI model on huggingface.co that provides bert2bert_shared-spanish-finetuned-summarization's model effect (), which can be used instantly with this mrm8488 bert2bert_shared-spanish-finetuned-summarization model. huggingface.co supports a free trial of the bert2bert_shared-spanish-finetuned-summarization model, and also provides paid use of the bert2bert_shared-spanish-finetuned-summarization. Support call bert2bert_shared-spanish-finetuned-summarization model through api, including Node.js, Python, http.

bert2bert_shared-spanish-finetuned-summarization huggingface.co Url

https://huggingface.co/mrm8488/bert2bert_shared-spanish-finetuned-summarization

mrm8488 bert2bert_shared-spanish-finetuned-summarization online free

bert2bert_shared-spanish-finetuned-summarization huggingface.co is an online trial and call api platform, which integrates bert2bert_shared-spanish-finetuned-summarization's modeling effects, including api services, and provides a free online trial of bert2bert_shared-spanish-finetuned-summarization, you can try bert2bert_shared-spanish-finetuned-summarization online for free by clicking the link below.

mrm8488 bert2bert_shared-spanish-finetuned-summarization online free url in huggingface.co:

https://huggingface.co/mrm8488/bert2bert_shared-spanish-finetuned-summarization

bert2bert_shared-spanish-finetuned-summarization install

bert2bert_shared-spanish-finetuned-summarization is an open source model from GitHub that offers a free installation service, and any user can find bert2bert_shared-spanish-finetuned-summarization on GitHub to install. At the same time, huggingface.co provides the effect of bert2bert_shared-spanish-finetuned-summarization install, users can directly use bert2bert_shared-spanish-finetuned-summarization installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bert2bert_shared-spanish-finetuned-summarization install url in huggingface.co:

https://huggingface.co/mrm8488/bert2bert_shared-spanish-finetuned-summarization

Url of bert2bert_shared-spanish-finetuned-summarization

bert2bert_shared-spanish-finetuned-summarization huggingface.co Url

Provider of bert2bert_shared-spanish-finetuned-summarization huggingface.co

mrm8488
ORGANIZATIONS

Other API from mrm8488

huggingface.co

Total runs: 855
Run Growth: 264
Growth Rate: 30.88%
Updated:February 23 2024
huggingface.co

Total runs: 201
Run Growth: 89
Growth Rate: 41.59%
Updated:March 19 2023
huggingface.co

Total runs: 72
Run Growth: 32
Growth Rate: 44.44%
Updated:January 24 2024
huggingface.co

Total runs: 52
Run Growth: 33
Growth Rate: 73.33%
Updated:June 20 2023