text_plain_output_1.png
from transformers import pipeline

context = 'The Intergovernmental Panel on Climate Change (IPCC) is a scientifie intergovernmental body under the auspicesof the United Notio ns, set up at the request of member governments. It was first established in 1988 by two UnitedNations organizations, the World Me teorological Organization (hO) and the United Nations Environment Programe(UNEP), and later endorsed by the United Nations Gener al Assembly through Resolution 43/53. Membership of the IPCCis open to all members of the WMO and UNEP. The IPCC produces reports that support the United Nations FraneworkConvention on Climate Change (UNFCCC), which is the main international treaty on climate chango. The ultimateobjective of the UNFCCC is to stabilize greenhouse gas concentrations in the atmosphere at a level that would prevent dangerous anthropogenie (human-induced) interference with the climate systen. IPCC reports cover the scientific, chnical and socio-econonfe information relevant to understanding the scientifie basis of riskof human-induced climate change,its potential impacts and options for adaptation and mitigation."'

questions = ['what orpanization is the IPCC a part of?', 'What UN organizations established the IPCC?', 'What does the UN want to stabilize?']

tokenizer.encode(questions[0], truncation=True, padding=True)

from transformers import pipeline
nlp = pipeline('question-answering', model=model, tokenizer=tokenizer)

nlp({'question': 'What organization is the IPCC a part of?', 'context': context})