<jupyter_start><jupyter_text><jupyter_code>!git clone https://github.com/huggingface/transformers
%cd transformers
!pip install .
!git pull
!pip install --upgrade .
import gc
gc.collect()
src_text = ["""

ENGLISHதமிழ்বাংলাമലയാളംहिंदीमराठी
Follow Us:
 
The Indian Express
Thursday, March 04, 2021

Home
India
World
Cities
Opinion
Sports
Entertainment
Lifestyle
Tech
Videos
Explained
Audio
 
EpaperSUBSCRIBE
 
Sign in



LATEST NEWS
Odisha teen chained to cot, parents say has mental health issuesSex CD shakes up poll-bound BJP, BSY govt, minister <NAME> quitsI-T knocks on doors of Anur<NAME>, Taapsee Pannu; because they spoke up, says OppDissent against the Govt not seditious, says SC dismissing plea against Farooq AbdullahArmy investigates 3 jawans for Northern Command Hq data breach, Pak drug racket under scannerAs BJP wants her in ADMK, Sasikala stuns: ‘withdrawing from politics’Virat Kohli raises the pitch: Why blame only spin tracks, have a balanced conversationIND vs ENG 4th Test: Final chapter in series of twists and turnHaryana’s proposed ‘love jihad’ law: RTI shows 3 accused found innocent in only 4 similar casesOrders release, issues notice: SC ‘appalled’ as cops arrest court-appointed IRP for JaypeeMovement still occurring in Chamoli: studyAfter cracks, Congress ready to spare 8 seats for ISF in south BengalSTF seeks court permission for Siddique Kappan’s voice, writing samplesExplained: As you take the vaccine, some do’s and don’tsChamoli flash flood: In clear, present danger, villages may see some reliefOdisha teen chained to cot, parents say has mental health issuesSex CD shakes up poll-bound BJP, BSY govt, minister <NAME> quits
PrevNext
Stop
HomeExplainedExplained: As you take the Covid-19 vaccine, some do's and don'ts
Explained: As you take the Covid-19 vaccine, some do’s and don’ts
Covid-19 vaccine: Here are some of the things you need to know, and some precautions that you should take before getting vaccinated.



Written by <NAME> | Pune |
Updated: March 4, 2021 10:05:29 am
covid vaccine, coronavirus vaccine, covid vaccine, covid 19 vaccine, covid 19 vaccine news, coronavirus vaccine news, covid 19 vaccine news, coronavirus vaccine, covid 19 india vaccine, covid vaccination, covid 19 vaccination, coronavirus vaccination

Senior citizens get their first shots of the Covid-19 vaccine at a private hospital in Kolkata on March 1. (Express Photo: Partha Paul)
More than 1.63 crore people have received a coronavirus vaccine in India so far. While there has been no case of any adverse effect on anyone, some recipients have reported some side-effects or mild illness.

A large number of experts have underlined that these are expected in a small number of cases — and that these ought not to dissuade people from taking the shot.

📣 Newsletter 📣 | Click to get the day’s best explainers in your inbox


Dr <NAME>, member of Maharashtra’s Covid-19 task force, said both the vaccines being used in India, Bharat Biotech’s Covaxin and Serum Institute of India’s Covishield, a version of the Oxford-AstraZeneca vaccine, are absolutely safe — and minor side-effects are expected in some cases, not just for these particular vaccines, but any other vaccine as well.

Here are some of the things you need to know, and some precautions that you should take before getting vaccinated.

Before vaccination
👉 In case a person has allergies to medication, or drugs, it is important to get an all-clear from a medical practitioner. A complete blood count (CBC), C-reactive protein (CRP), or Immunoglobulin-E (IgE) levels can be checked under medical advice.

👉 One should eat well and take medicines, if prescribed, ahead of vaccination. One should try to be as relaxed as possible; counselling can help people who are feeling anxious.

👉 People with diabetes or blood pressure need to keep these in check. Cancer patients, especially those on chemotherapy, must act on medical advice.

👉 People who have received blood plasma or monoclonal antibodies as part of Covid-19 treatment, or those who have been infected in the last one and a half months are advised to not take the vaccine right now.

📣 JOIN NOW 📣: The Express Explained Telegram Channel
After vaccination
👉 A recipient of the vaccine is monitored at the vaccine centre itself to guard against any immediate severe allergic reaction. People are allowed to leave only after it has been ascertained that this is not the case.

👉 Side effects like pain at the injection site and fever are common. This is no reason to panic. Some other side effects like chills and fatigue might also be expected, but these go away in a few days.

Coronavirus Explained
Covaxin has around 81% efficacy: What does this mean?
As you take the Covid-19 vaccine, some do's and don'ts
Why you shouldn't ditch the mask after vaccination
CLICK HERE FOR MORE
Important to note
🔴 Vaccines teach our immune system how to recognise and fight an external threat — in this case, the virus that causes Covid-19. It typically takes a few weeks after vaccination for the body to build protection (immunity) against the virus.

🔴 This means that a person could still get infected by Covid-19 in the few days immediately following the vaccination, because the person would not have had enough time to develop immunity.

🔴 Therefore, basic precautionary measures must be followed even after vaccination. Face masks, hand hygiene, and physical distancing in public places must not be abandoned just because a vaccine has been taken. Cough/sneeze etiquette also needs to be followed.

mail logo
Want to go beyond the news and understand the headlines? Subscribe to Explained by The Indian Express

Enter Your Email
 
📣 The Indian Express is now on Telegram. Click here to join our channel (@indianexpress) and stay updated with the latest headlines

For all the latest Explained News, download Indian Express App.

© The Indian Express (P) Ltd
TAGS:CoronavirusCoronavirus Rules ViolationsCOVID-19Explained HealthExpress Explained
3 Comment(s) *
* The moderation of comments is automated and not cleared manually by indianexpress.com.
Is your kid aged 4-6? Get them Personalized Reading Classes. Free Demo Class!
Vedantu SuperReaders | Online
|
Sponsored
1 on 1 Phonics-based Reading Classes for Kids Aged 4-6. Get Free Demo Class!
Vedantu SuperReaders | Online
|
Sponsored
Coding Classes For Kids in Grade 1-9 by IIT/ Harvard Alumnus
Help us to help you take the informed decision by booking a free trial now! Laptop/Desktop is mandatory.
CampK12
|
Sponsored
Play just 1 minute to find out why everyone loves this RPG!
Hero Wars
|
Sponsored
Explained: What led to Congress’ Puducherry crisis, and Kiran Bedi factor
IndianExpress
Explained: Karnataka’s Brahmin Development Board and its two schemes for brides
IndianExpress
A Day In The Life Of A Caregiver - Living with Schizophrenia
Our Better World
|
Sponsored
Explained: The gangrape that shook Odisha, cost the Congress CM his chair 22 years ago
IndianExpress
Explained: Who is <NAME>, who claims she is jailed in Dubai by her father, UAE’s ruler?
IndianExpress
Seeking help, this caregiver to her schizophrenia son finds support
Our Better World
|
Sponsored
Explained: What led to Congress’ Puducherry crisis, and Kiran Bedi factor
IndianExpress
Explained: The gangrape that shook Odisha, cost the Congress CM his chair 22 years ago
IndianExpress
Is your kid aged 4-6? Get them Personalized Reading Classes. Free Demo Class!
Vedantu SuperReaders | Online
|
Sponsored
ADVERTISEMENT

MORE EXPLAINED
covaxin, covaxin efficacy, covaxin vaccine, covaxin covid vaccine, covaxin news, covaxin coronavirus vaccine, covid vaccine, coronavirus vaccine, covid vaccine, covid 19 vaccine, covid 19 vaccine newsCovaxin has 81% efficacy: What does this mean?
Explained: Despite unsold spectrum, why DoT sees success in 2-day auctionDespite unsold spectrum, why DoT sees success in auction
covid vaccine, coronavirus vaccine, covid vaccine, covid 19 vaccine, covid 19 vaccine news, coronavirus vaccine news, covid 19 vaccine news, coronavirus vaccine, covid 19 india vaccine, covid vaccination, covid 19 vaccination, coronavirus vaccinationAs you take the Covid-19 vaccine, some do's and don'ts

Simlipal forest fire, Simlipal fire, Simlipal forest, Simlipal fire cause, Simlipal fire news, Indian ExpressWhy Simlipal forest fire is a matter of concern
BEST OF EXPRESS
ED case against Kerala govt body officials, Pinarayi Vijayan complains to ECED case against Kerala govt body officials, CM Vijayan complains to EC
Army investigates 3 jawans for Northern Command Hq data breach, Pak drug racket under scannerArmy investigates 3 jawans for Northern Command Hq data breach
kal ho na ho jhanak shukla shah rukh khan
Entertainment
SRK's Kal Ho Naa Ho co-star Jhanak Shukla is all grown up now, says she feels 'retired at the age of 25'

<NAME> with daughter Anayra
Entertainment
<NAME> shares daughter Anayra's adorable dance video, calls her 'a little rockstar'
Indonesia’s Mount Sinabung erupting time lapse viral video, active volcano, North Sumatra province, Indonesia news, trending, indian express, indian express news
Trending
Watch: Indonesia's Mount Sinabung erupts again, spews ash 5 km into the sky
cat attacks pilot, sudan plane cat breaks into cockpit, tarco aviation cat attacks pilot mid air, plane makes emergency landing pilot attacked by cat, odd news, weird news, indian express
Trending
In mid-air cat-astrophe, feline attacks pilot forcing plane to divert back
India vs England 4th Test Live Cricket Score
Sports
India vs England 4th Test, Day 1 Live | Axar removes ENG openers
<NAME>
Sports
K<NAME>ard hits six sixes in an over as Windies beat Sri Lanka

Opinion
India’s migrant workers need better policies
covaxin, covaxin efficacy, covaxin vaccine, covaxin covid vaccine, covaxin news, covaxin coronavirus vaccine, covid vaccine, coronavirus vaccine, covid vaccine, covid 19 vaccine, covid 19 vaccine newsCovaxin has 81% efficacy: What does this mean?
grainy idlis, how to make grainy idlis, easy idli recipe, easy recipe, how to make breakfast, idli for breakfast ideas, types of idli batter, indianexpress.com, indianexpress, breakfast ideas,
Lifestyle
Breakfast recipe: <NAME>'s mother shares secret to making grainy idlis
Truecaller, Truecaller Guardians app, Guardians app from Truecaller, Truecaller women's safety app, Women's Safety app Truecaller
Technology
Truecaller launches Guardians app for personal safety
ADVERTISEMENT

MUST READ
India vs England 4th Test Live Cricket Score
Sports
India vs England 4th Test, Day 1 Live | Axar removes ENG openers
<NAME>
Sports
<NAME> hits six sixes in an over as Windies beat Sri Lanka
england trolls virat kohli
Sports
Virat Kohli bats for rotation in Covid times
Truecaller, Truecaller Guardians app, Guardians app from Truecaller, Truecaller women's safety app, Women's Safety app Truecaller
Technology
Truecaller launches Guardians app for personal safety
PlayStation, Sony playStation, PlayStation banana, banana playstation controller patent, patent banana Playstation, PS5, PS VR 2
Technology
Sony wants to turn a 'banana' into a PlayStation controller
Microsoft Mesh, What is Microsoft Mesh, Microsoft Mesh Mixed Reality, Microsoft Mesh Mixed Reality platform, How will Mesh work, Microsoft Mesh capabilities, Microsoft Mesh HoloLens, Microsoft Mesh Holograph
Technology
Microsoft Mesh is the company's powerful new mixed reality platform
grainy idlis, how to make grainy idlis, easy idli recipe, easy recipe, how to make breakfast, idli for breakfast ideas, types of idli batter, indianexpress.com, indianexpress, breakfast ideas,
Lifestyle
Breakfast recipe: <NAME>'s mother shares secret to making grainy idlis
ADVERTISEMENT

EXPRESS OPINION

Opinion
India’s migrant workers need better policies

Opinion
Why it is important for classrooms to learn to transgress

Opinion
India’s new digital rules are bad news for democracy

Opinion
No classroom is monolingual. Our education policies must reflect this

MAR 04: LATEST NEWS
Bitter electoral slugfest in West Bengal gets a sweet makeover!
Vadodara City Police, vadodara domestic violence case, vadodara assault case, indian express newsMan held for impersonating T-Series casting director to cheat acting aspirants
Mumbai covid, BMC, brazil passengers, brazil passengers quarantine, indian express newsLudhiana: Bomb threat call to Sahnewal airport official, FIR registered
Gujarat budget, Gujarat budget allocation, Gujarat education budget, gujarat news, indian express newsIn 3 days, survey finds 640 ‘out of school students’ in PMC limits; number may rise further
Bombay Hc, FASTag, FASTag toll plaza, FASTag payments, indian express newsBomby HC seeks Centre response on PIL against FASTag, seeking option of cash for toll payment
maharashtra assembly, Maharashtr bjp, BJp Plantation drive, BJP plantation drive corruption, indian express newsLudhiana BJP leader’s wife booked for not getting tenants verified
Mumbai covid, Mumbai covid vaccination, bmc, mumbai covid vaccine centres, indian express newsLet private hospitals give second dose to their healthcare workers free of cost: PMC to Centre
milan, milan fashion designersMilan designers hit reset button during digital fashion week
‘Ready for any sacrifice in interest of farmers’: <NAME>, gets rousing welcome at ‘Kisan Mahapanchayat’
Pune Rural Police, gangster Nilesh Ghaywal, Nilesh Ghaywal preventive detention, Maharashtra news, indian express newsGangster Ghaywal sent to preventive detention under MPDA
ADVERTISEMENT

EXPRESS EXPLAINED
X
The Simlipal forest fire, and why it is a matter of concernThe Simlipal forest fire, and why it is a matter of concern
TRENDING NEWS
Coronavirus News
Best Telugu Movies
West Bengal Elections 2021
Horoscope
Pune News
IPL 2021 Retained Players
CSK IPL 2021 Players List
MI IPL 2021 Retained Players
RCB IPL 2021 Retained Players
KKR IPL 2021 Players List
CBSE Date Sheet 2021
IND Vs ENG Series 2021
CBSE Board Exams 2021
Bangalore News
Tamil Nadu Budget 2021
IND Vs ENG 3rd Test
FOLLOW US
Facebook
Twitter
Linkedin
Instagram
DOWNLOAD APPS
Android
iPhone
EXPRESS GROUP
The Indian Express
ieTamil.com
The Financial Express
ieBangla.com
Loksatta
ieMalayalam.com
Jansatta
inUth
The ExpressGroup
MyInsuranceClub
Newsletters
26/11 Stories of Strength
Ramnath Goenka Excellence in Journalism Awards
QUICK LINKS
T&C
Privacy Policy
Advertise with Us
Contact Us
Subscribe
Statutory provisions on reporting (sexual offenses)
This website follows the DNPA’s code of conduct
Copyright © 2021 The Indian Express [P] Ltd. All Rights Reserved
Powered by WordPress.com VIP



"""
]
!pip install sentencepiece
!curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --apt-packages libomp5 libopenblas-dev
import warnings
import torch_xla
import torch_xla.debug.metrics as met
import torch_xla.distributed.data_parallel as dp
import torch_xla.distributed.parallel_loader as pl
import torch_xla.utils.utils as xu
import torch_xla.core.xla_model as xm
import torch_xla.distributed.xla_multiprocessing as xmp
import torch_xla.test.test_utils as test_utils
import warnings

warnings.filterwarnings("ignore")
torch_device = xm.xla_device()
!pip install torch_xla
import torch
torch_device = 'cuda' if torch.cuda.is_available() else 'cpu'
print(torch_device)
import torch
from transformers import PegasusForConditionalGeneration, PegasusTokenizer

model_name = 'google/pegasus-cnn_dailymail'
tokenizer1 = PegasusTokenizer.from_pretrained(model_name)
model1 = PegasusForConditionalGeneration.from_pretrained(model_name).to(torch_device)
batch = tokenizer1.prepare_seq2seq_batch(article, truncation=True, padding='longest', return_tensors="pt").to(torch_device)
translated = model1.generate(**batch,min_length = 100)
tgt_text = tokenizer1.batch_decode(translated, skip_special_tokens=True)
print("Summary:", tgt_text[0])
from newspaper import fulltext
import requests
article_url="https://en.wikipedia.org/wiki/Virat_Kohli"
article = fulltext(requests.get(article_url).text)
print(article)
!pip install newspaper3k<jupyter_output>Collecting newspaper3k
[?25l  Downloading https://files.pythonhosted.org/packages/d7/b9/51afecb35bb61b188a4b44868001de348a0e8134b4dfa00ffc191567c4b9/newspaper3k-0.2.8-py3-none-any.whl (211kB)

[K     |█▌                              | 10kB 24.4MB/s eta 0:00:01
[K     |███                             | 20kB 28.5MB/s eta 0:00:01
[K     |████▋                           | 30kB 20.6MB/s eta 0:00:01
[K     |██████▏                         | 40kB 24.3MB/s eta 0:00:01
[K     |███████▊                        | 51kB 25.4MB/s eta 0:00:01
[K     |█████████▎                      | 61kB 28.0MB/s eta 0:00:01
[K     |██████████▉                     | 71kB 19.2MB/s eta 0:00:01
[K     |████████████▍                   | 81kB 19.5MB/s eta 0:00:01
[K     |██████████████                  | 92kB 18.6MB/s eta 0:00:01
[K     |███████████████▌                | 102kB 19.5MB/s eta 0:00:01
[K     |█████████████████               | 112kB 19.5MB/s eta 0:00:01
[K     |██████████████████▋             | 12[...]
{'fraction_non_alphanumeric': 0.05304621848739496, 'fraction_numerical': 0.020133053221288517, 'mean_word_length': 4.809152542372881, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '157816', 'license': 'MIT', 'n_tokens_mistral': 5468, 'n_tokens_neox': 4762, 'n_words': 2354, 'path': 'Summarizer.ipynb', 'repo_name': 'Adityahulk/Neural-Machine-Translation', 'size': '17253'}