Datasets:

Modalities:
Tabular
Text
ArXiv:
Libraries:
Datasets
License:
Jonathan Li commited on
Commit
cd8df66
·
1 Parent(s): 4b465b5

Fix format

Browse files
Files changed (4) hide show
  1. dev.jsonl +2 -2
  2. process.ipynb +8 -6
  3. test.jsonl +2 -2
  4. tests.ipynb +50 -0
dev.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e62d36f24776a826a44f409e83994e7d54790bb680baa4cb572db2caf31e0006
3
- size 22017634
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:384066605d3d9522728a32e96b51622c5d1e9517f4d2285a914338b713ca04e2
3
+ size 21937882
process.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": null,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
@@ -11,7 +11,7 @@
11
  },
12
  {
13
  "cell_type": "code",
14
- "execution_count": null,
15
  "metadata": {},
16
  "outputs": [],
17
  "source": [
@@ -22,7 +22,7 @@
22
  },
23
  {
24
  "cell_type": "code",
25
- "execution_count": null,
26
  "metadata": {},
27
  "outputs": [],
28
  "source": [
@@ -39,7 +39,7 @@
39
  },
40
  {
41
  "cell_type": "code",
42
- "execution_count": null,
43
  "metadata": {},
44
  "outputs": [],
45
  "source": [
@@ -57,11 +57,13 @@
57
  },
58
  {
59
  "cell_type": "code",
60
- "execution_count": null,
61
  "metadata": {},
62
  "outputs": [],
63
  "source": [
64
- "new_train.to_json(\"train.jsonl\", lines=True, orient=\"records\")"
 
 
65
  ]
66
  }
67
  ],
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 6,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
 
11
  },
12
  {
13
  "cell_type": "code",
14
+ "execution_count": 7,
15
  "metadata": {},
16
  "outputs": [],
17
  "source": [
 
22
  },
23
  {
24
  "cell_type": "code",
25
+ "execution_count": 8,
26
  "metadata": {},
27
  "outputs": [],
28
  "source": [
 
39
  },
40
  {
41
  "cell_type": "code",
42
+ "execution_count": 9,
43
  "metadata": {},
44
  "outputs": [],
45
  "source": [
 
57
  },
58
  {
59
  "cell_type": "code",
60
+ "execution_count": 10,
61
  "metadata": {},
62
  "outputs": [],
63
  "source": [
64
+ "new_train.to_json(\"train.jsonl\", lines=True, orient=\"records\")\n",
65
+ "test.to_json(\"test.jsonl\", lines=True, orient=\"records\")\n",
66
+ "dev.to_json(\"dev.jsonl\", lines=True, orient=\"records\")"
67
  ]
68
  }
69
  ],
test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2cca7c2295c62a19e420f854ecc9d6891a897ead211c51c1baf2eec843a9bdab
3
- size 38004811
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f891aeec2e899ee96b44bbbb10bea0b21b704128bf2254fdad67833014720560
3
+ size 37870022
tests.ipynb ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "import datasets\n",
10
+ "echr = datasets.load_dataset(\"jonathanli/echr\")"
11
+ ]
12
+ },
13
+ {
14
+ "cell_type": "code",
15
+ "execution_count": null,
16
+ "metadata": {},
17
+ "outputs": [],
18
+ "source": [
19
+ "echr"
20
+ ]
21
+ }
22
+ ],
23
+ "metadata": {
24
+ "kernelspec": {
25
+ "display_name": "Python 3.10.5 64-bit",
26
+ "language": "python",
27
+ "name": "python3"
28
+ },
29
+ "language_info": {
30
+ "codemirror_mode": {
31
+ "name": "ipython",
32
+ "version": 3
33
+ },
34
+ "file_extension": ".py",
35
+ "mimetype": "text/x-python",
36
+ "name": "python",
37
+ "nbconvert_exporter": "python",
38
+ "pygments_lexer": "ipython3",
39
+ "version": "3.10.5"
40
+ },
41
+ "orig_nbformat": 4,
42
+ "vscode": {
43
+ "interpreter": {
44
+ "hash": "e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a"
45
+ }
46
+ }
47
+ },
48
+ "nbformat": 4,
49
+ "nbformat_minor": 2
50
+ }