CoolFace
Modelpublic

slauw87/bart_summarisation

sourceHugging Faceapache-2.0updated 5y agoView on Hugging Face
59likes62downloads
Model Card

language: en tags:

  • sagemaker
  • bart
  • summarization license: apache-2.0 datasets:
  • samsum model-index:
  • name: bart-large-cnn-samsum results:
  • task: name: Abstractive Text Summarization type: abstractive-text-summarization dataset: name: "SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarization" type: samsum metrics:
  • name: Validation ROGUE-1 type: rogue-1 value: 43.2111
  • name: Validation ROGUE-2 type: rogue-2 value: 22.3519
  • name: Validation ROGUE-L type: rogue-l value: 33.315
  • name: Test ROGUE-1 type: rogue-1 value: 41.8283
  • name: Test ROGUE-2 type: rogue-2 value: 20.9857
  • name: Test ROGUE-L type: rogue-l value: 32.3602 widget:
  • text: | Sugi: I am tired of everything in my life. Tommy: What? How happy you life is! I do envy you. Sugi: You don't know that I have been over-protected by my mother these years. I am really about to leave the family and spread my wings. Tommy: Maybe you are right. ---

bart-large-cnn-samsum

This model was trained using Amazon SageMaker and the new Hugging Face Deep Learning container. For more information look at:

Hyperparameters

{ "datasetname": "samsum", "doeval": true, "dopredict": true, "dotrain": true, "fp16": true, "learningrate": 5e-05, "modelnameorpath": "facebook/bart-large-cnn", "numtrainepochs": 3, "outputdir": "/opt/ml/model", "perdeviceevalbatchsize": 4, "perdevicetrainbatchsize": 4, "predictwith_generate": true, "seed": 7 }

Usage

from transformers import pipeline summarizer = pipeline("summarization", model="slauw87/bart-large-cnn-samsum") conversation = '''Sugi: I am tired of everything in my life. Tommy: What? How happy you life is! I do envy you. Sugi: You don't know that I have been over-protected by my mother these years. I am really about to leave the family and spread my wings. Tommy: Maybe you are right. ''' nlp(conversation)

Results

keyvalue
eval_rouge143.2111
eval_rouge222.3519
eval_rougeL33.3153
eval_rougeLsum40.0527
predict_rouge141.8283
predict_rouge220.9857
predict_rougeL32.3602
predict_rougeLsum38.7316