Datasets:
Commit
·
185e5e1
1
Parent(s):
4eb9813
add English translation
Browse files- README.md +6 -0
- csl.py +6 -4
- data/csl.gt.063023.jsonl.gz +3 -0
README.md
CHANGED
@@ -3,6 +3,7 @@ annotations_creators:
|
|
3 |
- no-annotation
|
4 |
language:
|
5 |
- zh
|
|
|
6 |
license:
|
7 |
- apache-2.0
|
8 |
pretty_name: CSL
|
@@ -33,6 +34,7 @@ The dataset contains titles, abstracts, keywords of papers written in Chinese fr
|
|
33 |
### Languages
|
34 |
|
35 |
- Chinese
|
|
|
36 |
|
37 |
## Dataset Structure
|
38 |
|
@@ -41,6 +43,7 @@ The dataset contains titles, abstracts, keywords of papers written in Chinese fr
|
|
41 |
| Split | Documents |
|
42 |
|-----------------|----------:|
|
43 |
| `csl` | 396k |
|
|
|
44 |
|
45 |
### Data Fields
|
46 |
|
@@ -53,6 +56,9 @@ The dataset contains titles, abstracts, keywords of papers written in Chinese fr
|
|
53 |
- `discipline`: academic discipline of the paper
|
54 |
- `discipline_eng`: English translation of the academic discipline (e.g., Agricultural Engineering)
|
55 |
|
|
|
|
|
|
|
56 |
## Dataset Usage
|
57 |
|
58 |
Using 🤗 Datasets:
|
|
|
3 |
- no-annotation
|
4 |
language:
|
5 |
- zh
|
6 |
+
- en
|
7 |
license:
|
8 |
- apache-2.0
|
9 |
pretty_name: CSL
|
|
|
34 |
### Languages
|
35 |
|
36 |
- Chinese
|
37 |
+
- English (translation)
|
38 |
|
39 |
## Dataset Structure
|
40 |
|
|
|
43 |
| Split | Documents |
|
44 |
|-----------------|----------:|
|
45 |
| `csl` | 396k |
|
46 |
+
| `en_translation`| 396k |
|
47 |
|
48 |
### Data Fields
|
49 |
|
|
|
56 |
- `discipline`: academic discipline of the paper
|
57 |
- `discipline_eng`: English translation of the academic discipline (e.g., Agricultural Engineering)
|
58 |
|
59 |
+
The `en_translation` contains documents translated from Google Translation service.
|
60 |
+
All text are in English, so the fields `category_eng` and `discipline_eng` are omitted.
|
61 |
+
|
62 |
## Dataset Usage
|
63 |
|
64 |
Using 🤗 Datasets:
|
csl.py
CHANGED
@@ -3,11 +3,12 @@ import json
|
|
3 |
import datasets
|
4 |
|
5 |
_URLS = {
|
6 |
-
"csl": "https://huggingface.co/datasets/neuclir/csl/resolve/main/data/csl.jsonl.gz"
|
|
|
7 |
}
|
8 |
|
9 |
class Csl(datasets.GeneratorBasedBuilder):
|
10 |
-
VERSION = datasets.Version("1.1.
|
11 |
|
12 |
def _info(self):
|
13 |
return datasets.DatasetInfo(
|
@@ -27,10 +28,11 @@ class Csl(datasets.GeneratorBasedBuilder):
|
|
27 |
paths = dl_manager.download(_URLS)
|
28 |
return [
|
29 |
datasets.SplitGenerator(
|
30 |
-
name=
|
31 |
gen_kwargs={
|
32 |
-
"filepath": paths[
|
33 |
})
|
|
|
34 |
]
|
35 |
|
36 |
def _generate_examples(self, filepath):
|
|
|
3 |
import datasets
|
4 |
|
5 |
_URLS = {
|
6 |
+
"csl": "https://huggingface.co/datasets/neuclir/csl/resolve/main/data/csl.jsonl.gz",
|
7 |
+
"en_translation": "https://huggingface.co/datasets/neuclir/csl/resolve/main/data/csl.gt.063023.jsonl.gz",
|
8 |
}
|
9 |
|
10 |
class Csl(datasets.GeneratorBasedBuilder):
|
11 |
+
VERSION = datasets.Version("1.1.1")
|
12 |
|
13 |
def _info(self):
|
14 |
return datasets.DatasetInfo(
|
|
|
28 |
paths = dl_manager.download(_URLS)
|
29 |
return [
|
30 |
datasets.SplitGenerator(
|
31 |
+
name=split,
|
32 |
gen_kwargs={
|
33 |
+
"filepath": paths[split],
|
34 |
})
|
35 |
+
for split in _URLS
|
36 |
]
|
37 |
|
38 |
def _generate_examples(self, filepath):
|
data/csl.gt.063023.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a63ac70f6c5596fd77d3793585e68b2700bf0cd94aded3bcbe85dcc17e43628
|
3 |
+
size 417782969
|