Created
March 8, 2020 18:26
-
-
Save sshleifer/0ad5d989d5e066e46f1f547fd541c212 to your computer and use it in GitHub Desktop.
Bart Tweet Carbon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers.example_data import LONG_BORING_ARTICLE_ABOUT_TENNIS | |
from transformers import * | |
bart = BartForMaskedLM.from_pretrained('bart-large-cnn') | |
SUMMARY = bart.generate(LONG_BORING_ARTICLE_ABOUT_TENNIS) | |
# -> | |
""" | |
Mark Selby, John Higgins and Ding Junhui were among a number of players who moved effortlessly into the last 16 of the China Open on Wednesday. Selby continued to defy a neck injury to sweep aside fellow Englishman Elliot Slessor with a break of 126 in frame four of their second-round clash. Ding, the home favourite and reigning champion in Beijing, had two breaks of 86 in a convincing 5-1 victory against Mark Davis. | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment