{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Processing an existing dataset for long-form question answering to filter out overly long answers." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "DatasetDict({\n", " train: Dataset({\n", " features: ['question', 'answer', 'context'],\n", " num_rows: 226147\n", " })\n", " validation: Dataset({\n", " features: ['question', 'answer', 'context'],\n", " num_rows: 3020\n", " })\n", "})" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import datasets\n", "\n", "# Long-form question answering dataset, nicely preprocessed already.\n", "# Similar to ELI5: https://facebookresearch.github.io/ELI5/index.html (which is unavailable now)\n", "dataset_lfqa = datasets.load_dataset(\"LLukas22/lfqa_preprocessed\")\n", "dataset_lfqa" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | question | \n", "answer | \n", "context | \n", "
---|---|---|---|
0 | \n", "why do girls seem to be more bi-curious than guys? | \n", "I believe the most widespread theory is that is just simply more culturally accepted for women to engage in homosexual behavior | \n", "[Everyday situations, such as bathing and dealing with rainy weather, become tricky as the girls struggle with their newfound abilities, which come with many advantages and disadvantages, while also trying to keep them a secret from everyone else, including their families. They soon adapt to their new abilities and lifestyles.\\n, Her tomboyish, upfront approach to relationships tends to intimidate potential suitors, which leads her only female friend to advise her to dress and act more feminine. Being \"one of the guys\" can mean a lot of great things: poker games, pick-up softball games, watching sports or just hanging out at a favorite bar. But for PJ being a girl who’s one of the guys can be challenging.\\n, BULLET::::- Whereas women tend to foster a nurturing, calm, and positive environment, men promote a more active and physical environment. This can be particularly meaningful for boys, as their styles of play, learning, and thinking are more likely to be valued, accepted, and expanded. For girls, it can expose them to new ways of playing, learning, and thinking that they may not have experienced before.\\n, In her report, Abbey also argues that “men may be socialized to attend more carefully than women to potentially sexual cues and are, therefore, more likely to interpret a variety of stimuli as a sign of sexual intent.” Men tend to read into women's actions more sexually than women would read into men's actions. For example, men might find tickling to mean that the woman is very interested while to women it might just be a way of flirting or joking around. This can lead to some problems and possibly awkward encounters. Abbey also says that men tend to have a more sexual outlook and oftentimes perceive situations more sexually than women might; therefore, men could then feel that sexual advances are appropriate and justified whereas a woman may not be thinking so. \\n, Teen girls and boys differ in what they post in their online profiles. Studies have shown that female users tend to post more \"cute\" pictures, while male participants were more likely to post pictures of themselves in activities. Women in the U.S. also tend to post more pictures of friends, while men tend to post more about sports and humorous links. The study also found that males would post more alcohol and sexual references. The roles were reversed however, when looking at a teenage dating site: women made sexual references significantly more often than males.\\n, Girls are more likely to wait their turn to speak, agree with others, and acknowledge the contributions of others. Boys, on the other hand, build larger group relationships based on shared interests and activities. Boys are more likely to threaten, boast, and call names, suggesting the importance of dominance and hierarchy in groups of male friends. In mixed-sex pairs of children aged 33 months, girls were more likely to passively watch a male partner play, and boys were more likely to be unresponsive to what their female partners were saying. The social characteristics of boys and girls as they develop throughout childhood tend to carry over later in life as they become men and women, although characteristics displayed as younger children are not necessarily entirely reflective of later behavior.\\n, Boys share more personal information, such as their hometown and phone number, while girls are more conservative about the personal information they allow to go public on these social networking sites. Boys, meanwhile, are more likely to orient towards technology, sports, and humor in the information they post to their profile.\\n] | \n", "
1 | \n", "if i had a space ship parked outside a black hole's event horizon, and i launched a probe tethered to the ship by an information carrying wire beyond the event horizon, would that probe be able to relay information about the inner workings of the black hole back to the ship? | \n", "The wire would be using electrons or light to move data, neither of which could exit the event horizon.\\n\\nThe wire would also shear under its own weight, no material in the universe can withstand the incredible gravitational force at the event horizon. | \n", "[In desperation, Estes hits on the idea of going outside the ship and throwing small rocks at the black hole. This will generate bursts of x-rays which, he hopes, will be detected by radio-astronomers on Earth.\\n, When the latest Heechee crew exits the black hole, they are shocked to discover that humans are flying Heechee spaceships to all parts of the galaxy—and one of those places happens to be the \"Kugelblitz\" (a black hole made of energy and not matter), where The Foe is concentrated. The Heechee expected humans to discover the ships, but the cautious race believed Earth people would study and unlock the ships' secrets over a period of hundreds of years—and not simply take the equipment out for random rides in the dangerous galaxy.\\n, BULLET::::- Deep space vessel \"Event Horizon\" was sent to test an artificial wormhole (black hole) in deep space in the year 2040. The lost ship is found 7 years later by a rescue team on board the ship \"Lewis and Clark\" on low orbit around the planet Neptune.\\n, Rumours buzzed about the mystery porthole until the ship's captain ordered them stopped but they broke out again when the newspapers heard about the story. However, when reporters were invited to inspect the ship, the unclean porthole had disappeared both from inside and outside the ship.\\n, Janeway and the crew determine that by using the probe's relays, a signal can be sent to the emergency beacon Paris activated and use it as a transporter link. They also determine that a temporal disruption in the sinkhole causes time to pass quickly for the away team. For every 0.4744 of a second for the \"Voyager\" crew, a minute would pass for Tuvok and Paris. With the aliens ahead of schedule in their efforts to close the sinkhole, Janeway orders a message sent to the beacon with beam out instructions.\\n, Forward explains that he found the Tunguska meteorite, which was actually a small black hole. Returning it to the station he fed it the sphere of neutronium he was previously using for his communications attempt, thereby increasing its mass, and then fed in the exhaust of an ion engine to give it a permanent electric charge. The hole could now be manipulated with magnets, and towed around by the tugs. The tugs move it into the path of incoming starships to disable them, and then pirate the now-defenseless ships.\\n, When the ships arrive, their crews find to their horror that they are in the gravitational grip of a black hole without enough power to break free. The crews devise a desperate escape plan: Move everyone into one ship and eject the other toward the black hole, thus gaining enough of a boost to escape. Working frantically to transfer unnecessary equipment to make room, Broadhead finds himself alone in the wrong ship when time runs out. He closes the hatch so that the plan can proceed. By chance, his ship is the one that breaks free, leaving the rest of the crew falling into the black hole.\\n] | \n", "