autoevaluator's picture
Add evaluation results on the 3.0.0 config and test split of cnn_dailymail
21cfde1
metadata
language: en
license: apache-2.0
tags:
  - summarization
datasets:
  - cnn_dailymail
model-index:
  - name: google/roberta2roberta_L-24_cnn_daily_mail
    results:
      - task:
          type: summarization
          name: Summarization
        dataset:
          name: cnn_dailymail
          type: cnn_dailymail
          config: 3.0.0
          split: test
        metrics:
          - type: rouge
            value: 39.9335
            name: ROUGE-1
            verified: true
            verifyToken: >-
              eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTI0ZGQ2MWJhOWZmMDMwYzEyMjk3Yjc2OTViNjMyNzBmNGQyYzhjYzcxNjZhOTE5NmY0MDdlYzFiZDExNTI0YSIsInZlcnNpb24iOjF9.zVeZ9rkgQNNkSto9rsSyOPAOyJuA4v17Das7ITsK7gMgSMK8Kyoa61WQnf0YGTcp_kGJNNmPuV44Q1EW-WIiDQ
          - type: rouge
            value: 18.473
            name: ROUGE-2
            verified: true
            verifyToken: >-
              eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTIwYzA4M2IwMWVmMTExNzIxODc1YTQxNGI0NTc5ODU3ZjhjNzY0NDc2NWExMTJkYzI5YTBiMTQ2ZjJhN2MwOCIsInZlcnNpb24iOjF9.yFr72PY4Lc4J1By_wTdYf57IwLt8qOOgaq0W7k8n7q8dcI9zkhqNSh4SWzlnozQgyzYBwa2TiPTS5j4KFdo9DA
          - type: rouge
            value: 28.8123
            name: ROUGE-L
            verified: true
            verifyToken: >-
              eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYTNiOTQ0Yzc3NzUwYWNkYWUyNzMwYjhmNjFkOWUwYjk4NTllYzQ4MDFkMWVkMTRjZWFmZGMwMjg3OWRkODI0MiIsInZlcnNpb24iOjF9.FmQ5L6qCjqt1eXsteC4Fi0Bjga9AMD4cK037IrLToJ0mMdfXsJ_YuDI1Y652qsOHLgdmOprpfMODFbOfsPQoDQ
          - type: rouge
            value: 31.663
            name: ROUGE-LSUM
            verified: true
            verifyToken: >-
              eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYTJmZTZiZDgyMzM1YWU0YThlMThjYzdmY2QzYzNlYzcxOTFiNjE3Mjk2MDkwMjBmODI3NGJjOTAxYzdiZmM0ZiIsInZlcnNpb24iOjF9.QxajfOpW_I60KjtBBsIOoxoct1IWLm5gSyaYa32P-xM_IC74sOzR1KnlL7LQDerujap6Y1vNpTpU36OInZxZBw
          - type: loss
            value: 3.880310297012329
            name: loss
            verified: true
            verifyToken: >-
              eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYThmYjU5ZTU0ZGRiNDNhYmJmNTJmZDljYzEwNjRjOTlhNWExMTRhNTQ0NmE1MGNiYWQxYmNiMTAwNTkyM2NiMCIsInZlcnNpb24iOjF9.AOBeynJktEwdcRpMI5su6h0MdtcLSz2W6KAugnRR11-2MLfMDshVssBEKKAOrSi5YDVXnhJ3KIdf2XcJ_u1bAg
          - type: gen_len
            value: 67.699
            name: gen_len
            verified: true
            verifyToken: >-
              eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjhhOGJjOGM1NTBjNzBmMWQ4YWYzNDZlYzBhMWI4YzUxNTJhMjdlMTljYjRiYzFhMzc0Nzc5NmVhZjk3YWRkZiIsInZlcnNpb24iOjF9.KuOC2SeCEi5DhO6KSlRyYGCJJ4iJVoRkhRdy3zT-GR8v4HEvXk4KLt1_LPDjw-bjZlbPXduHkdcJIJUWLOuTCg

Roberta2Roberta_L-24_cnn_daily_mail EncoderDecoder model

The model was introduced in this paper by Sascha Rothe, Shashi Narayan, Aliaksei Severyn and first released in this repository.

The model is an encoder-decoder model that was initialized on the roberta-large checkpoints for both the encoder and decoder and fine-tuned on summarization on the CNN / Dailymail dataset, which is linked above.

Disclaimer: The model card has been written by the Hugging Face team.

How to use

You can use this model for summarization, e.g.

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("google/roberta2roberta_L-24_cnn_daily_mail")
model = AutoModelForSeq2SeqLM.from_pretrained("google/roberta2roberta_L-24_cnn_daily_mail")

article = """	(The Hollywood Reporter)"The Rocky Horror Picture
Show" is the latest musical getting the small-
screen treatment. Fox is developing a two-hour
remake of the 1975 cult classic to be directed,
executive-produced and choreographed by Kenneth
Ortega ("High School Musical"). The project,
tentatively titled "The Rocky Horror Picture Show
Event," is casting-contingent. The special will be
filmed in advance and not air live, but few
details beyond that are known. In addition to
Ortega, Gail Berman and Lou Adler, who produced
the original film, are also attached as executive
producers. The special will be produced by Fox 21
Television Studios, and Berman's The Jackal Group.
The special is timed to celebrate the 40th
anniversary of the film, which has grossed more
than $112 million and still plays in theaters
across the country. TV premiere dates: The
complete guide . This isn't the first stab at
adapting "The Rocky Horror Picture Show." In 2002,
Fox unveiled plans for an adaptation timed to the
30th anniversary that never came to fruition. The
faces of pilot season 2015 . Fox's "Glee" covered
several of the show's most popular songs for a
Season 2 episode and even released a special "The
Rocky Horror Glee Show" EP. There is no plan yet
for when the adaptation will air. Fox also has a
live musical production of "Grease", starring
Julianne Hough and Vanessa Hudgens, scheduled to
air on Jan. 31, 2016. Broadcast TV scorecard .
Following in the footsteps of "The Sound of Music"
and "Peter Pan," NBC recently announced plans to
air a live version of The Wiz later this year.
Ortega's credits include "Gilmore Girls," "This Is
It" and "Hocus Pocus." He is repped by Paradigm
and Hanson, Jacobson. ©2015 The Hollywood
Reporter. All rights reserved."""

input_ids = tokenizer(article, return_tensors="pt").input_ids
output_ids = model.generate(input_ids)[0]
print(tokenizer.decode(output_ids, skip_special_tokens=True))
# should output
# Fox is developing a two-hour remake of the 1975 cult classic. The special will be directed, executive-produced and choreographed by Kenneth Ortega. 
# The special is timed to celebrate the 40th anniversary of the film, which has grossed more than $112 million.