sappho192 commited on
Commit
d56fd33
1 Parent(s): c7b801f

Create example.ipynb

Browse files
Files changed (1) hide show
  1. example.ipynb +65 -0
example.ipynb ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "id": "initial_id",
7
+ "metadata": {
8
+ "collapsed": true
9
+ },
10
+ "outputs": [],
11
+ "source": [
12
+ "from datasets import load_dataset\n",
13
+ "\n",
14
+ "dataset = load_dataset(\"sappho192/Tatoeba-Challenge-jpn-kor\")"
15
+ ]
16
+ },
17
+ {
18
+ "cell_type": "code",
19
+ "outputs": [],
20
+ "source": [
21
+ "train_dataset = dataset['train']\n",
22
+ "test_dataset = dataset['test']"
23
+ ],
24
+ "metadata": {
25
+ "collapsed": false
26
+ },
27
+ "id": "24a2c71258131944",
28
+ "execution_count": null
29
+ },
30
+ {
31
+ "cell_type": "code",
32
+ "outputs": [],
33
+ "source": [
34
+ "train_first_row = train_dataset[0]\n",
35
+ "test_first_row = test_dataset[0]"
36
+ ],
37
+ "metadata": {
38
+ "collapsed": false
39
+ },
40
+ "id": "bdc796395623fb9d",
41
+ "execution_count": null
42
+ }
43
+ ],
44
+ "metadata": {
45
+ "kernelspec": {
46
+ "display_name": "Python 3",
47
+ "language": "python",
48
+ "name": "python3"
49
+ },
50
+ "language_info": {
51
+ "codemirror_mode": {
52
+ "name": "ipython",
53
+ "version": 2
54
+ },
55
+ "file_extension": ".py",
56
+ "mimetype": "text/x-python",
57
+ "name": "python",
58
+ "nbconvert_exporter": "python",
59
+ "pygments_lexer": "ipython2",
60
+ "version": "2.7.6"
61
+ }
62
+ },
63
+ "nbformat": 4,
64
+ "nbformat_minor": 5
65
+ }