{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[],"dockerImageVersionId":30747,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\n\nsplits = {'train': 'data/train-00000-of-00001.parquet', \n 'validation_matched': 'data/validation_matched-00000-of-00001.parquet', \n 'validation_mismatched': 'data/validation_mismatched-00000-of-00001.parquet'}\n \ndf = pd.read_parquet(\"hf://datasets/nyu-mll/multi_nli/\" + splits[\"train\"])","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-07-20T13:04:43.497190Z","iopub.execute_input":"2024-07-20T13:04:43.497536Z","iopub.status.idle":"2024-07-20T13:04:51.222716Z","shell.execute_reply.started":"2024-07-20T13:04:43.497506Z","shell.execute_reply":"2024-07-20T13:04:51.221916Z"},"trusted":true},"execution_count":1,"outputs":[]},{"cell_type":"code","source":"df = df[['label', 'premise', 'hypothesis']].iloc[:13000]\ndf","metadata":{"execution":{"iopub.status.busy":"2024-07-20T13:04:52.891990Z","iopub.execute_input":"2024-07-20T13:04:52.892933Z","iopub.status.idle":"2024-07-20T13:04:53.013716Z","shell.execute_reply.started":"2024-07-20T13:04:52.892902Z","shell.execute_reply":"2024-07-20T13:04:53.012747Z"},"trusted":true},"execution_count":2,"outputs":[{"execution_count":2,"output_type":"execute_result","data":{"text/plain":" label premise \\\n0 1 Conceptually cream skimming has two basic dime... \n1 0 you know during the season and i guess at at y... \n2 0 One of our number will carry out your instruct... \n3 0 How do you know? All this is their information... \n4 1 yeah i tell you what though if you go price so... \n... ... ... \n12995 1 right you have to question you have to wonder ... \n12996 2 Reviewers may not be familiar with the charact... \n12997 1 yeah it was Twins was good too because when i... \n12998 0 The Jews are Neanderthals. \n12999 1 25--to get a copy of my book legally from my W... \n\n hypothesis \n0 Product and geography are what make cream skim... \n1 You lose the things to the following level if ... \n2 A member of my team will execute your orders w... \n3 This information belongs to them. \n4 The tennis shoes have a range of prices. \n... ... \n12995 I would not mind living on an island to find out. \n12996 Typically, reviewers are fully aware of an eme... \n12997 Twins was the best movie I saw last year. \n12998 Jewish people are like Neanderthals. \n12999 My book is free on my site. \n\n[13000 rows x 3 columns]","text/html":"
\n | label | \npremise | \nhypothesis | \n
---|---|---|---|
0 | \n1 | \nConceptually cream skimming has two basic dime... | \nProduct and geography are what make cream skim... | \n
1 | \n0 | \nyou know during the season and i guess at at y... | \nYou lose the things to the following level if ... | \n
2 | \n0 | \nOne of our number will carry out your instruct... | \nA member of my team will execute your orders w... | \n
3 | \n0 | \nHow do you know? All this is their information... | \nThis information belongs to them. | \n
4 | \n1 | \nyeah i tell you what though if you go price so... | \nThe tennis shoes have a range of prices. | \n
... | \n... | \n... | \n... | \n
12995 | \n1 | \nright you have to question you have to wonder ... | \nI would not mind living on an island to find out. | \n
12996 | \n2 | \nReviewers may not be familiar with the charact... | \nTypically, reviewers are fully aware of an eme... | \n
12997 | \n1 | \nyeah it was Twins was good too because when i... | \nTwins was the best movie I saw last year. | \n
12998 | \n0 | \nThe Jews are Neanderthals. | \nJewish people are like Neanderthals. | \n
12999 | \n1 | \n25--to get a copy of my book legally from my W... | \nMy book is free on my site. | \n
13000 rows × 3 columns
\n\n | label | \npremise | \nhypothesis | \n
---|---|---|---|
3615 | \n2 | \nAn ambitious plan for a hexagonally based chur... | \nThe complex plan of the hospital, came to noth... | \n
2536 | \n1 | \nfor for city use and | \nOnly the city can use it. | \n
5397 | \n0 | \nThe really valuable estate cannot be touched b... | \nThe death tax is unable to reach the most impo... | \n
9982 | \n0 | \nisn't that the truth it's funny in fact it's i... | \nI love that music from my childhood has return... | \n
1498 | \n0 | \nMost drivers will be able to point out the Bok... | \nThe Bok House is transformed into a restaurant. | \n
... | \n... | \n... | \n... | \n
11872 | \n1 | \nAs the road rises, the rugged countryside beco... | \nThe hillsides are full of ferns and trees. | \n
9264 | \n0 | \nThe monastery rests in a fertile valley and is... | \nIn a fertile valley surrounded by plane and pi... | \n
7277 | \n2 | \nSince everyone who matters presumably knows al... | \nPeople who matter no nothing about who backs t... | \n
3752 | \n2 | \nso what type of restaurant do you like | \nYou don't eat at restaurants at all, right? | \n
6292 | \n2 | \nright that that's actually the part that that ... | \nI don't believe muslims are hated by Israelis. | \n
2600 rows × 3 columns
\n