abhik1505040 commited on
Commit
c215234
1 Parent(s): 7b056bf

Updated README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -5
README.md CHANGED
@@ -1,9 +1,10 @@
1
  ---
2
  tags:
3
  - summarization
 
4
  datasets:
5
  - csebuetnlp/xlsum
6
- languages:
7
  - am
8
  - ar
9
  - az
@@ -49,9 +50,9 @@ languages:
49
  - yo
50
  licenses:
51
  - cc-by-nc-sa-4.0
52
- multilinguality:
53
- - multilingual
54
- paperswithcode_id: xl-sum
55
  ---
56
 
57
  # mT5-multilingual-XLSum
@@ -72,7 +73,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
72
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
73
 
74
  input_ids = tokenizer.prepare_seq2seq_batch(
75
- [article_text.strip()],
76
  return_tensors="pt",
77
  padding="max_length",
78
  truncation=True,
 
1
  ---
2
  tags:
3
  - summarization
4
+ - mT5
5
  datasets:
6
  - csebuetnlp/xlsum
7
+ language:
8
  - am
9
  - ar
10
  - az
 
50
  - yo
51
  licenses:
52
  - cc-by-nc-sa-4.0
53
+ widget:
54
+ - text: "Yahoo's patents suggest users could weigh the type of ads against the sizes of discount before purchase. It says in two US patent applications that ads for digital book readers have been \"less than optimal\" to date. The filings suggest that users could be offered titles at a variety of prices depending on the ads' prominence They add that the products shown could be determined by the type of book being read, or even the contents of a specific chapter, phrase or word. The paperwork was published by the US Patent and Trademark Office late last week and relates to work carried out at the firm's headquarters in Sunnyvale, California. \"Greater levels of advertising, which may be more valuable to an advertiser and potentially more distracting to an e-book reader, may warrant higher discounts,\" it states. Free books It suggests users could be offered ads as hyperlinks based within the book's text, in-laid text or even \"dynamic content\" such as video. Another idea suggests boxes at the bottom of a page could trail later chapters or quotes saying \"brought to you by Company A\". It adds that the more willing the customer is to see the ads, the greater the potential discount. \"Higher frequencies... may even be great enough to allow the e-book to be obtained for free,\" it states. The authors write that the type of ad could influence the value of the discount, with \"lower class advertising... such as teeth whitener advertisements\" offering a cheaper price than \"high\" or \"middle class\" adverts, for things like pizza. The inventors also suggest that ads could be linked to the mood or emotional state the reader is in as a they progress through a title. For example, they say if characters fall in love or show affection during a chapter, then ads for flowers or entertainment could be triggered. The patents also suggest this could applied to children's books - giving the Tom Hanks animated film Polar Express as an example. It says a scene showing a waiter giving the protagonists hot drinks \"may be an excellent opportunity to show an advertisement for hot cocoa, or a branded chocolate bar\". Another example states: \"If the setting includes young characters, a Coke advertisement could be provided, inviting the reader to enjoy a glass of Coke with his book, and providing a graphic of a cool glass.\" It adds that such targeting could be further enhanced by taking account of previous titles the owner has bought. 'Advertising-free zone' At present, several Amazon and Kobo e-book readers offer full-screen adverts when the device is switched off and show smaller ads on their menu screens, but the main text of the titles remains free of marketing. Yahoo does not currently provide ads to these devices, and a move into the area could boost its shrinking revenues. However, Philip Jones, deputy editor of the Bookseller magazine, said that the internet firm might struggle to get some of its ideas adopted. \"This has been mooted before and was fairly well decried,\" he said. \"Perhaps in a limited context it could work if the merchandise was strongly related to the title and was kept away from the text. \"But readers - particularly parents - like the fact that reading is an advertising-free zone. Authors would also want something to say about ads interrupting their narrative flow.\""
55
+
56
  ---
57
 
58
  # mT5-multilingual-XLSum
 
73
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
74
 
75
  input_ids = tokenizer.prepare_seq2seq_batch(
76
+ [article_text.replace("\n", " ").strip()],
77
  return_tensors="pt",
78
  padding="max_length",
79
  truncation=True,