parquet-converter
commited on
Commit
ยท
fda8085
1
Parent(s):
0b3bd5a
Update parquet files
Browse files- .gitattributes +1 -0
- data/label.txt +0 -7
- data/test.tsv +0 -10
- data/train.tsv +0 -0
- data/valid.tsv +0 -0
- default/klue-tc-tsv-test.parquet +0 -0
- default/klue-tc-tsv-train.parquet +3 -0
- default/klue-tc-tsv-validation.parquet +0 -0
- klue-tc-tsv.py +0 -55
.gitattributes
CHANGED
@@ -14,3 +14,4 @@
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
|
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
17 |
+
default/klue-tc-tsv-train.parquet filter=lfs diff=lfs merge=lfs -text
|
data/label.txt
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
์ ์น
|
2 |
-
์ธ๊ณ
|
3 |
-
IT๊ณผํ
|
4 |
-
์คํฌ์ธ
|
5 |
-
์ฌํ
|
6 |
-
๊ฒฝ์
|
7 |
-
์ํ๋ฌธํ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/test.tsv
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
5์ต์ ๋ฌด์ด์ ์ต์๋ ๋๊ณ 7์ฒ๋ง์ ์ด์ฌ๋น๋ ์๋๋ค ์ฌํ
|
2 |
-
์ ์์์ถฉ์ ์๋ง ๋ ๋ฉ๋ฆฌ ๋จ์ด์ ธ์ผ ํ๋ ํ๊ฒฝ์ฐ ๊ท์ ๊ฐํ ๊ฑด์ ์ฌํ
|
3 |
-
ํญ์๊ณ ์ ์ฑ๋ถ ์ฝ๋ก๋19์ ํจ๊ณผโฆ์ธํฌ์คํ์ ํ์ธ IT๊ณผํ
|
4 |
-
์ค๊ฑฐ๋๊ฐ ๊ฐ์ฅ ๋น์ผ ์ญ์ธ๊ถ์ ์ ๋ฐํฌ์ญโฆ3.3ใก๋น 1์ต ์ก๋ฐ ๊ฒฝ์
|
5 |
-
๊ธฐ์ํ๊ฒฌ ํ๋ ์ฑ ์์์ ๋จ์ฒด ์ฌํ
|
6 |
-
๋ชจ์์ ๊ฑฐ ๊ต์ก ๋ถํ ์ ๊ด์ยท๊ต์ก๋ถ ๊ฐ์ฑํ๋ผ ์ฌํ
|
7 |
-
๋ฎค์ง์ปฌ ์์
ํฉ๋ฅํ ์์ฌ์ฑ ์ ์ฑํ์ ๋ค๋ฅธ ์์ค๊ทผ ๋ณด์ฌ์ค๊ฒ ์ํ๋ฌธํ
|
8 |
-
๊ฐ์ง๋ด์ค ์ง๋ฒ์ ์ํด๋ฐฐ์์ ๋ ๋์
๋ณํ ํ ๋ก ํ ์ฌํ
|
9 |
-
MBN ๋
ธ์กฐ ๋ถ๋์ฐ ๋ฌผ์ ๋ถํ ์ค๋จํ๊ณ ์์ ๊ฒฝ์ ๋ถ๋ฆฌํด์ผ ์ฌํ
|
10 |
-
ํฌ์ค์ฝ๊ฑด์ค 11๋
๋ง์ ๋ ์ต ๋ธ๋๋ ๋ก๊ณ ๊ต์ฒด ๊ฒฝ์
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/train.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/valid.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
default/klue-tc-tsv-test.parquet
ADDED
Binary file (2.65 kB). View file
|
|
default/klue-tc-tsv-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc16d56c2232ad2086c3e0fd0fac334a7f3aca2e36349abf631ffd05c085071d
|
3 |
+
size 2566827
|
default/klue-tc-tsv-validation.parquet
ADDED
Binary file (519 kB). View file
|
|
klue-tc-tsv.py
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
from __future__ import absolute_import, division, print_function
|
2 |
-
import datasets
|
3 |
-
_URL = "data/"
|
4 |
-
_URLs = {
|
5 |
-
"train": _URL + "train.tsv",
|
6 |
-
"valid": _URL + "valid.tsv",
|
7 |
-
"test": _URL + "test.tsv",
|
8 |
-
}
|
9 |
-
|
10 |
-
|
11 |
-
class KlueTC(datasets.GeneratorBasedBuilder):
|
12 |
-
|
13 |
-
def _info(self):
|
14 |
-
return datasets.DatasetInfo(
|
15 |
-
description="KLUE Topic Classification",
|
16 |
-
features=datasets.Features(
|
17 |
-
{
|
18 |
-
"text": datasets.Value("string"),
|
19 |
-
"label": datasets.features.ClassLabel(names=['์ ์น', '์ธ๊ณ', 'IT๊ณผํ', '์คํฌ์ธ ', '์ฌํ', '๊ฒฝ์ ', '์ํ๋ฌธํ']),
|
20 |
-
}
|
21 |
-
),
|
22 |
-
supervised_keys=None,
|
23 |
-
license="",
|
24 |
-
homepage="",
|
25 |
-
citation="",
|
26 |
-
)
|
27 |
-
|
28 |
-
def _split_generators(self, dl_manager):
|
29 |
-
downloaded_files = dl_manager.download_and_extract(_URLs)
|
30 |
-
return [
|
31 |
-
datasets.SplitGenerator(
|
32 |
-
name=datasets.Split.TRAIN,
|
33 |
-
gen_kwargs={
|
34 |
-
"filepath": downloaded_files["train"],
|
35 |
-
}
|
36 |
-
),
|
37 |
-
datasets.SplitGenerator(
|
38 |
-
name=datasets.Split.VALIDATION,
|
39 |
-
gen_kwargs={
|
40 |
-
"filepath": downloaded_files["valid"],
|
41 |
-
}
|
42 |
-
),
|
43 |
-
datasets.SplitGenerator(
|
44 |
-
name=datasets.Split.TEST,
|
45 |
-
gen_kwargs={
|
46 |
-
"filepath": downloaded_files["test"],
|
47 |
-
}
|
48 |
-
),
|
49 |
-
]
|
50 |
-
|
51 |
-
def _generate_examples(self, filepath):
|
52 |
-
with open(filepath, "r", encoding='UTF-8') as f:
|
53 |
-
for idx, line in enumerate(f):
|
54 |
-
text, label = line.split("\t")
|
55 |
-
yield idx, {"text": text.strip(), "label": label.strip()}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|