Commit 0feef0d6 authored by Anish Thite's avatar Anish Thite
Browse files

add coqa extraction

parent 38ed3ac8
from ...base import Dataset
import os
import json
class CoQA(Dataset):
def training_docs(self):
pass
def validation_docs(self):
pass
def test_docs(self):
pass
def fewshot_examples(self, k):
traindocs = list(self.training_docs())
random.seed(123)
random.shuffle(traindocs)
return traindocs[:k]
def fewshot_description(self):
pass
def doc_to_text(self, doc, include_target=True):
json.load(open(doc))
{
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"myvar = json.load(open('../../data/coqa/coqa-train-v1.0.json'))['data']"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [],
"source": [
"text = []\n",
"for item in myvar:\n",
" text.append(item['story'])\n",
" qa_pairs = zip(item['questions'], item['answers'])\n",
" for pair in qa_pairs:\n",
" text.append(''.join(['Q: ',pair[0]['input_text']]))\n",
" text.append(''.join(['A: ',pair[1]['input_text']]))\n",
" text.append('<|endoftext|>')\n",
"text = '\\n'.join(text)\n",
"with open('coqasample.txt','w') as myfile:\n",
" myfile.write(text)"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'The Vatican Apostolic Library (), more commonly called the Vatican Library or simply the Vat, is the library of the Holy See, located in Vatican City. Formally established in 1475, although it is much older, it is one of the oldest libraries in the world and contains one of the most significant collections of historical texts. It has 75,000 codices from throughout history, as well as 1.1 million printed books, which include some 8,500 incunabula. \\n\\nThe Vatican Library is a research library for history, law, philosophy, science and theology. The Vatican Library is open to anyone who can document their qualifications and research needs. Photocopies for private study of pages from books published between 1801 and 1990 can be requested in person or by mail. \\n\\nIn March 2014, the Vatican Library began an initial four-year project of digitising its collection of manuscripts, to be made available online. \\n\\nThe Vatican Secret Archives were separated from the library at the beginning of the 17th century; they contain another 150,000 items. \\n\\nScholars have traditionally divided the history of the library into five periods, Pre-Lateran, Lateran, Avignon, Pre-Vatican and Vatican. \\n\\nThe Pre-Lateran period, comprising the initial days of the library, dated from the earliest days of the Church. Only a handful of volumes survive from this period, though some are very significant.\\nQ: When was the Vat formally opened?\\nA: It was formally established in 1475\\nQ: what is the library for?\\nA: research\\nQ: for what subjects?\\nA: history, and law\\nQ: and?\\nA: philosophy, science and theology\\nQ: what was started in 2014?\\nA: a project\\nQ: how do scholars divide the library?\\nA: into periods\\nQ: how many?\\nA: five\\nQ: what is the official name of the Vat?\\nA: The Vatican Apostolic Library\\nQ: where is it?\\nA: in Vatican City\\nQ: how many printed books does it contain?\\nA: 1.1 million\\nQ: when were the Secret Archives moved from the rest of the library?\\nA: at the beginning of the 17th century;\\nQ: how many items are in this secret collection?\\nA: 150,000\\nQ: Can anyone use this library?\\nA: anyone who can document their qualifications and research needs.\\nQ: what must be requested to view?\\nA: unknown\\nQ: what must be requested in person or by mail?\\nA: Photocopies\\nQ: of what books?\\nA: only books published between 1801 and 1990\\nQ: What is the Vat the library of?\\nA: the Holy See\\nQ: How many books survived the Pre Lateran period?\\nA: a handful of volumes\\nQ: what is the point of the project started in 2014?\\nA: digitising manuscripts\\nQ: what will this allow?\\nA: them to be viewed online.\\n<|endoftext|>\\nNew York (CNN) -- More than 80 Michael Jackson collectibles -- including the late pop star\\'s famous rhinestone-studded glove from a 1983 performance -- were auctioned off Saturday, reaping a total $2 million. \\n\\nProfits from the auction at the Hard Rock Cafe in New York\\'s Times Square crushed pre-sale expectations of only $120,000 in sales. \\n\\nThe highly prized memorabilia, which included items spanning the many stages of Jackson\\'s career, came from more than 30 fans, associates and family members, who contacted Julien\\'s Auctions to sell their gifts and mementos of the singer. \\n\\nJackson\\'s flashy glove was the big-ticket item of the night, fetching $420,000 from a buyer in Hong Kong, China. Jackson wore the glove at a 1983 performance during \"Motown 25,\" an NBC special where he debuted his revolutionary moonwalk. \\n\\nFellow Motown star Walter \"Clyde\" Orange of the Commodores, who also performed in the special 26 years ago, said he asked for Jackson\\'s autograph at the time, but Jackson gave him the glove instead. \\n\\n\"The legacy that [Jackson] left behind is bigger than life for me,\" Orange said. \"I hope that through that glove people can see what he was trying to say in his music and what he said in his music.\" \\n\\nOrange said he plans to give a portion of the proceeds to charity. \\n\\nHoffman Ma, who bought the glove on behalf of Ponte 16 Resort in Macau, paid a 25 percent buyer\\'s premium, which was tacked onto all final sales over $50,000. Winners of items less than $50,000 paid a 20 percent premium. \\nQ: Where was the Auction held?\\nA: Hard Rock Cafe\\nQ: How much did they make?\\nA: $2 million.\\nQ: How much did they expected?\\nA: $120,000\\nQ: WHo buy the Jackson Glove\\nA: Hoffman Ma\\nQ: Where was the buyer of the glove from?\\nA: Macau\\n<|endoftext|>\\nCHAPTER VII. THE DAUGHTER OF WITHERSTEEN \\n\\n\"Lassiter, will you be my rider?\" Jane had asked him. \\n\\n\"I reckon so,\" he had replied. \\n\\nFew as the words were, Jane knew how infinitely much they implied. She wanted him to take charge of her cattle and horse and ranges, and save them if that were possible. Yet, though she could not have spoken aloud all she meant, she was perfectly honest with herself. Whatever the price to be paid, she must keep Lassiter close to her; she must shield from him the man who had led Milly Erne to Cottonwoods. In her fear she so controlled her mind that she did not whisper this Mormon\\'s name to her own soul, she did not even think it. Besides, beyond this thing she regarded as a sacred obligation thrust upon her, was the need of a helper, of a friend, of a champion in this critical time. If she could rule this gun-man, as Venters had called him, if she could even keep him from shedding blood, what strategy to play his flame and his presence against the game of oppression her churchmen were waging against her? Never would she forget the effect on Tull and his men when Venters shouted Lassiter\\'s name. If she could not wholly control Lassiter, then what she could do might put off the fatal day. \\n\\nOne of her safe racers was a dark bay, and she called him Bells because of the way he struck his iron shoes on the stones. When Jerd led out this slender, beautifully built horse Lassiter suddenly became all eyes. A rider\\'s love of a thoroughbred shone in them. Round and round Bells he walked, plainly weakening all the time in his determination not to take one of Jane\\'s favorite racers. \\nQ: What did Venters call Lassiter?\\nA: gun-man\\nQ: Who asked Lassiter to be their rider?\\nA: Jane\\nQ: Did he agree?\\nA: Yes\\nQ: Why did she ask him?\\nA: to take charge of her cattle and horse and ranges, and save them\\nQ: Did she tell him as much?\\nA: No\\nQ: What was she willing to give up?\\nA: Whatever the price to be paid\\nQ: Where was Milly led to?\\nA: Cottonwoods\\nQ: Who took her there?\\nA: A man\\nQ: Whose name would Jane not speak?\\nA: this Mormon\\'s name\\nQ: Did she allow herself to even think it?\\nA: No\\nQ: What was Jane hoping Lassiter would become to her?\\nA: a helper, of a friend, of a champion\\nQ: Who was oppressing her?\\nA: her churchmen\\nQ: What was she hoping she could keep from happening to him?\\nA: shedding blood\\nQ: Who had shouted Lassiter\\'s name?\\nA: Venters\\nQ: Who did that affect?\\nA: Tull and his men\\nQ: Did Jane think she could control Lassiter?\\nA: No\\nQ: Who is Bells?\\nA: One of her safe racers\\nQ: How did he get his name?\\nA: because of the way he struck his iron shoes on the stones.\\nQ: Was Lassiter impressed with the horse?\\nA: Yes\\nQ: Did he want to take him for himself?\\nA: Yes\\n<|endoftext|>\\n(CNN) -- The longest-running holiday special still has a very shiny nose. \\n\\n\"Rudolph the Red-Nosed Reindeer\" premiered on television December 6, 1964, and is now one of the holiday season\\'s perennial favorites. The story of the reindeer who saves Christmas is beloved among children and adults alike. \\n\\nThe Rankin-Bass animated film production company used Japanese puppets and stop motion to tell the tale, bolstered by a soundtrack featuring Burl Ives\\' rendition of the theme song. \\n\\nIn the story, Santa\\'s reindeer Donner and his wife have a son, Rudolph, who has the distinction of a nose that glows. He runs away after being made to feel an outcast and links up with an elf who dreams of becoming a dentist and an adventurer seeking silver and gold. \\n\\nAfter ending up on the Island of Misfit Toys and wandering for a while, Rudolph goes on to save his loved ones from the Abominable Snow Monster and guides Santa through a blizzard that threatens to ruin Christmas. \\n\\nIn 2006, the New York Times reported that fans drove for miles to see the Rudolph and Santa Claus puppets at the Center for Puppetry Arts in Atlanta. The pair were thought to be the last of the surviving production puppets. They had been taken home by a production company employee and given to her children after filming was completed. \\n\\n\"In 2005, the nephew of the original rescuer found the puppets in a family attic and brought them to be appraised on the PBS series \\'Antiques Roadshow,\\' \" the Times said. \"Created for about $5,000 each in 1964, they were valued at $8,000 to $10,000 for the pair. The family sold both figures to Kevin A. Kriess, the president of TimeandSpaceToys.com and a lifelong fan of the Rankin-Bass films.\" \\nQ: Who is Rudolph\\'s father?\\nA: Donner\\nQ: Why does Rudolph run away?\\nA: he felt like an outcast\\nQ: What makes him different from the other reindeer?\\nA: his nose glows\\nQ: Who does he save during a snow storm?\\nA: his loved ones\\nQ: Does he save Christmas?\\nA: yes\\nQ: What Island does he travel to?\\nA: the Island of Misfit Toys\\nQ: Which company produced the movie?\\nA: Rankin-Bass\\nQ: When did it premiere?\\nA: December 6, 1964\\nQ: What methods were used in filming the movie?\\nA: Japanese puppets and stop motion\\nQ: Are all of the puppets still in existence?\\nA: no\\nQ: How many remain?\\nA: two\\nQ: Which?\\nA: Rudolph and Santa Claus\\nQ: Where had they been stored since their use in the show?\\nA: in a family attic\\nQ: When were they rediscovered?\\nA: In 2005\\nQ: When were they put on display?\\nA: In 2006\\nQ: Where?\\nA: the Center for Puppetry Arts\\nQ: How much did they appraise for in 2005?\\nA: $8,000 to $10,000 for the pair\\nQ: How much did they originally cost to produce?\\nA: about $5,000 each\\nQ: What year were they made?\\nA: 1964\\nQ: Who bought them?\\nA: Kevin A. Kriess\\n<|endoftext|>\\nCHAPTER XXIV. THE INTERRUPTED MASS \\n\\nThe morning of that Wednesday of Corpus Christi, fateful to all concerned in this chronicle, dawned misty and grey, and the air was chilled by the wind that blew from the sea. The chapel bell tinkled out its summons, and the garrison trooped faithfully to Mass. \\n\\nPresently came Monna Valentina, followed by her ladies, her pages, and lastly, Peppe, wearing under his thin mask of piety an air of eager anxiety and unrest. Valentina was very pale, and round her eyes there were dark circles that told of sleeplessness, and as she bowed her head in prayer, her ladies observed that tears were falling on the illuminated Mass-book over which she bent. And now came Fra Domenico from the sacristy in the white chasuble that the Church ordains for the Corpus Christi feast, followed by a page in a clerkly gown of black, and the Mass commenced. \\n\\nThere were absent only from the gathering Gonzaga and Fortemani, besides a sentry and the three prisoners. Francesco and his two followers. \\n\\nGonzaga had presented himself to Valentina with the plausible tale that, as the events of which Fanfulla\\'s letter had given them knowledge might lead Gian Maria at any moment to desperate measures, it might be well that he should reinforce the single man-at-arms patrolling the walls. Valentina, little recking now whether the castle held or fell, and still less such trifles as Gonzaga\\'s attendance at Mass, had assented without heeding the import of what he said. \\n\\nAnd so, his face drawn and his body quivering with the excitement of what he was about to do, Gonzaga had repaired to the ramparts so soon as he had seen them all safely into chapel. The sentinel was that same clerkly youth Aventano, who had read to the soldiers that letter Gian Maria had sent Gonzaga. This the courtier accepted as a good omen. If a man there was among the soldiery at Roccaleone with whom he deemed that he had an account to settle, that man was Aventano. \\nQ: Who arrived at the church?\\nA: the garrison first\\nQ: Who was followed by a clerk dressed in black?\\nA: Fra. Domenico\\nQ: Who was crying?\\nA: Valentina\\nQ: Who noticed it?\\nA: her ladies\\nQ: Did any others arrive with her?\\nA: yes\\nQ: What other group of people were in her group?\\nA: her pages\\nQ: And who in the group was anxious?\\nA: , Peppe\\nQ: Was she well-rested?\\nA: no\\nQ: Who should be reinforced?\\nA: the single man-at-arms patrolling the walls.\\nQ: Who thought these measures were required?\\nA: Gian Maria\\n<|endoftext|>\\nHave you ever been to some big cities in the world? The information below will be helpful to you. Budapest For many centuries, Budapest was two cities, with Buda on the west side of the river Danube and Pest on the east side. Budapest became one city in 1872, and it has been the capital city of Hungary for about eighty years. The population of Budapest is about three million, and the city is a very popular place for tourists. Visitors like to take boat rides along the Danube. Budapest is also known for its exciting nightlife. The best time to visit is summer since Budapest is very cold in winter. Los Angeles Los Angeles was founded in 1781. With 3.5 million people it is now the biggest city in California and the second largest city in the United States. It is famous for its modern highways, its movie stars, and its smog. When the city is really smoggy, you can\\'t see the near-by Mountains. The weather is usually dry and warm. Visitors like to go to the film studios and to drive along Hollywood Street. There are many good beaches near the city, and Los Angeles is also close to Disneyland. Taipei Since the founding of Taipei in the 18th century, the city has grown to a population of 2.3 million. Taipei is an exciting city, but the weather is humid and not always pleasant. It\\'s also a very busy city, and the streets are always full of people. There is an excellent museum that many people visit. Taipei is quite an expensive city, but not more expensive than some neighboring cities such as Hong Kong and Tokyo. So more and more travelers go to Taipei to shop.\\nQ: Was Budapest always one city?\\nA: no\\nQ: How many was it?\\nA: two\\nQ: What was one called?\\nA: Buda\\nQ: Where was it located?\\nA: the west side of the river\\nQ: What was the other?\\nA: Danube and Pest\\nQ: Where was it located?\\nA: the east side\\nQ: When did they combine?\\nA: in 1872\\nQ: Is it an important city in it\\'s country?\\nA: yes\\nQ: How many people live there?\\nA: The population of Budapest is about three million\\nQ: Do other people visit?\\nA: yes\\nQ: What do they do?\\nA: take boat rides\\nQ: Where?\\nA: along the Danube\\nQ: When do people like to go?\\nA: summer\\nQ: Why?\\nA: because it\\'s very cold in winter\\nQ: When was LA started?\\nA: 1781\\nQ: What is the climate like there?\\nA: dry and warm\\nQ: What is it close to?\\nA: Disneyland\\nQ: How many people live in Taipei?\\nA: 2.3 million\\nQ: Is it cheap to live there?\\nA: no\\nQ: Do people prefer to buy things in Hong Kong?\\nA: no\\n<|endoftext|>\\n(CNN) -- A lawsuit filed by the family of Robert Champion, the Florida A&M University band member allegedly beaten to death in a hazing ritual, accuses the bus company involved in the deadly assault and the bus driver of negligence, their attorney said Monday. \\n\\nThe suit alleges that Fabulous Coach Lines and its driver not only consented to the illegal acts of hazing by students, they knowingly participated in the planned hazing activity over several years. \\n\\n\"This was a culture embraced by this bus company,\" Chris Chestnut said. \\n\\nAccording to court documents, Bus C, which is was the vehicle where the incident took place and the name of a specific hazing ritual, was parked in a dark corner, separate from the other buses provided by the company. \\n\\nThe suit also alleges that the bus and its air conditioning system were running at the time Champion was beaten and that the bus driver was standing guard at the door to prevent anyone from entering or exiting the vehicle. \\n\\nWhen Champion stepped off the bus at one point to vomit, the bus driver told him \"he would be alright as she forced him back onto the bus,\" the lawsuit claims. \\n\\nDespite a request for damages in excess of $15,000, Chestnut insisted the focus isn\\'t money. It allows him to file subpoenas and take witness statements to further the investigation. \\n\\n\"We figure out how this happened, we figure out how to fix it, and then we stop it from happening again,\" Chestnut said. \\n\\nCalls to the bus company and its attorneys, Wicker, Smith, O\\'Hara, McCoy, and Ford, PA, for comment have not been returned. \\nQ: WHO IS FILING THE LAWSUIT?\\nA: The family of Robert Champion\\nQ: AGAINST WHOM?\\nA: Fabulous Coach Lines\\nQ: WHAT DOES THE FAMILY ACCUSE THE COMPANY OF?\\nA: The company consented to the illegal acts of hazing by students\\nQ: WHAT HAPPENED TO ROBERT?\\nA: Beaten to death\\nQ: WHERE WAS HE KILLED?\\nA: In a bus.\\nQ: HOW DO THEY IDENTIFY THAT BUS?\\nA: Bus C\\nQ: WHERE WAS IT LOCATED WHEN THE INCIDENT TOOK PLACE?\\nA: In a dark corner, separate from the other buses\\nQ: WHAT ABOUT THE DRIVER?\\nA: Was standing guard at the door to prevent anyone from entering or exiting the vehicle\\nQ: WAS ROBERT IN A UNIVERSITY?\\nA: Yes\\nQ: WHICH ONE?\\nA: Florida A&M University\\nQ: DID THE DRIVER HELP HIM?\\nA: No\\nQ: WAS IS A MALE DRIVER>\\nA: No\\nQ: ARE THEY SUING HER TOO?\\nA: Yes\\nQ: WHAT IS THE REQUEST FOR DAMAGES?\\nA: $15,000\\nQ: IS THE FAMILY FOCUSED ON THE MONEY?\\nA: No\\nQ: WHAT\\'S THEIR MAIN FOCUS?\\nA: To file subpoenas and take witness statements to further the investigation\\nQ: DOES THE BUS COMPANY HAVE MULTIPLE ATTORNEYS?\\nA: Yes\\nQ: HOW MANY>\\nA: Five\\nQ: HOW HAVE THEY RESPONDED TO THE CALLS?\\nA: No\\nQ: DO THEY HAVE PROOF THE BUS COMPANY WAS IN ON IT?\\nA: Yes\\nQ: WHAT HAPPENED WHEN CHAMPION FIRST STEPPED OUT OF THE BUS?\\nA: He vomited.\\n<|endoftext|>\\nOfficials of the Chicago Transit Authority said they were investigating. The child, Nicole Hobson, was being taken by her mother to Children\\'s Memorial Hospital about 11 P. M., Wednesday to check her recently inserted pacemaker. \\n\\nThe child was stricken about a mile from the hospital. Her mother, May Hobson, 40, said, \"I told the bus driver that my baby had just had heart operation and that she was having a heart failure. He said he couldn\\'t go through the traffic.\" \\n\\nTed Garretson, 28, a passenger who had tried to bring back Nicole\\'s life, said the driver did nothing to help and stopped once to pick up more passengers. \\n\\nWhen the driver reached a corner where he was to make a turn, a block from the hospital, he told Mrs. Hobson to get off, she said. \\n\\nA transit spokesman said the driver should have made radio call to the control center for help.\\nQ: who recently had heart surgery?\\nA: Nicole Hobson\\nQ: what should the driver have done?\\nA: made radio call to the control center\\nQ: where did he leave them off?\\nA: a block from the hospital\\nQ: did the driver help?\\nA: no\\nQ: who tried to bring Nicole back to life?\\nA: Ted Garretson\\nQ: how old is Ted?\\nA: 28\\nQ: did the driver try to pick more people up?\\nA: yes\\nQ: who is looking into the situation?\\nA: Officials of the Chicago Transit Authority\\nQ: where was May heading with Nicole?\\nA: Children\\'s Memorial Hospital\\nQ: what day?\\nA: Wednesday\\nQ: what had recently been put into nicole?\\nA: a pacemaker.\\nQ: what time were they going to the hospital?\\nA: about 11 P. M.\\nQ: what is the mother\\'s name?\\nA: May Hobson\\nQ: how old is she?\\nA: 40\\n<|endoftext|>\\nLocal businessmen are increasingly facing competition from online retailers. Larry Pollock, owner of Camera Co/Op on South Congress, said he has been dealing with this kind of problem for years, even before the Internet. The struggle began with mail-order catalogues , which are similar to online retailers in that they have few employees to pay, no sales tax fees and no business venue to lease and manage. \\n\\n\"Their overhead is lower, but they don\\'t offer a service like we do,\" Pollock said. \\n\\nPollock, however, said providing a valuable service to customers does not always guarantee continued sales. \\n\\n\"We spend 30 minutes to an hour with somebody and they go home and buy it on line,\" he said. \\n\\nAccording to the state comptroller\\'s office, online shopping is developing at a more rapid rate than traditional businesses. \\n\\nIn spite of how fair or unfair online shopping may be to the local businessmen, consumers will continue to turn to the Internet for its variety and accessibility, said Mitch Wilson, an online shopper. \"You have a larger selection and it\\'s easier to compare prices.\" \\n\\nWilson said he built his personal computer and paid a third of the price by shopping on line. \\n\\n\"Before the Internet, I would have had to go and buy an assembled computer from somebody like Dell,\" he said. \"Before I started shopping on line I could never find all the pieces I wanted. No single store had everything needed, so shopping on line saved me from having to buy from Dell.\" \\n\\nJanny Brazeal, a psychology freshman, said online shopping is too impersonal. \\n\\n\"\\'d rather see it in person, touch it, know that I\\'m getting it,\" she said. \\n\\nBrazeal also said she would not give out her credit card number or other personal information on line no matter how safe the site claims it is.\\nQ: What is a valuable service?\\nA: brick and mortar stores\\nQ: What is the issue?\\nA: competition from online retailers\\nQ: When did it begin?\\nA: with mail-order catalogues\\nQ: Is is happening quickly?\\nA: yes\\nQ: What is a safety issue?\\nA: online security\\nQ: What is easier about online?\\nA: variety and accessibility\\nQ: Overhead higher or lower?\\nA: lower\\nQ: What is a reason online is cheaper?\\nA: overhead is lower\\nQ: why?\\nA: few employees to pay, no sales tax fees and no business venue to lease and manage\\nQ: who does it affect most?\\nA: local businessmen\\n<|endoftext|>\\nThe University of Chicago (UChicago, Chicago, or U of C) is a private research university in Chicago. The university, established in 1890, consists of The College, various graduate programs, interdisciplinary committees organized into four academic research divisions and seven professional schools. Beyond the arts and sciences, Chicago is also well known for its professional schools, which include the Pritzker School of Medicine, the University of Chicago Booth School of Business, the Law School, the School of Social Service Administration, the Harris School of Public Policy Studies, the Graham School of Continuing Liberal and Professional Studies and the Divinity School. The university currently enrolls approximately 5,000 students in the College and around 15,000 students overall. \\n\\nUniversity of Chicago scholars have played a major role in the development of various academic disciplines, including: the Chicago school of economics, the Chicago school of sociology, the law and economics movement in legal analysis, the Chicago school of literary criticism, the Chicago school of religion, and the behavioralism school of political science. Chicago\\'s physics department helped develop the world\\'s first man-made, self-sustaining nuclear reaction beneath the university\\'s Stagg Field. Chicago\\'s research pursuits have been aided by unique affiliations with world-renowned institutions like the nearby Fermilab and Argonne National Laboratory, as well as the Marine Biological Laboratory. The university is also home to the University of Chicago Press, the largest university press in the United States. With an estimated completion date of 2020, the Barack Obama Presidential Center will be housed at the university and include both the Obama presidential library and offices of the Obama Foundation.\\nQ: When was teh University established?\\nA: 1890\\nQ: How many professionals schools is it organized into?\\nA: seven\\nQ: How many students are enrolled?\\nA: 15,000\\nQ: and in the college?\\nA: 5,000\\nQ: What is the University home to?\\nA: University of Chicago Press,\\nQ: Is that a small press?\\nA: No, it is the largest university press in the United States.\\nQ: What will be completed in 2020?\\nA: the Barack Obama Presidential Center\\nQ: where will that be?\\nA: It will be housed at the university\\nQ: What will be there?\\nA: both the Obama presidential library and offices of the Obama Foundation.\\nQ: Does the University have a medical school?\\nA: Yes, the Pritzker School of Medicine\\nQ: A law school?\\nA: Yes\\n<|endoftext|>'"
]
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"text"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"When was the Vat formally opened?\n",
"It was formally established in 1475\n",
"what is the library for?\n",
"research\n",
"for what subjects?\n",
"history, and law\n",
"and?\n",
"philosophy, science and theology\n",
"what was started in 2014?\n",
"a project\n",
"how do scholars divide the library?\n",
"into periods\n",
"how many?\n",
"five\n",
"what is the official name of the Vat?\n",
"The Vatican Apostolic Library\n",
"where is it?\n",
"in Vatican City\n",
"how many printed books does it contain?\n",
"1.1 million\n",
"when were the Secret Archives moved from the rest of the library?\n",
"at the beginning of the 17th century;\n",
"how many items are in this secret collection?\n",
"150,000\n",
"Can anyone use this library?\n",
"anyone who can document their qualifications and research needs.\n",
"what must be requested to view?\n",
"unknown\n",
"what must be requested in person or by mail?\n",
"Photocopies\n",
"of what books?\n",
"only books published between 1801 and 1990\n",
"What is the Vat the library of?\n",
"the Holy See\n",
"How many books survived the Pre Lateran period?\n",
"a handful of volumes\n",
"what is the point of the project started in 2014?\n",
"digitising manuscripts\n",
"what will this allow?\n",
"them to be viewed online.\n"
]
}
],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment