Datasets:
test
Browse files- dev.jsonl +2 -2
- dev.tsv +0 -3
- test.jsonl +2 -2
- test.py +20 -0
- test.tsv +0 -3
- train.jsonl +2 -2
- train.tsv +0 -3
dev.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa6cde54558b47f1d13ddc2d98111c0e320b319272bf9e6539727673196e1eeb
|
3 |
+
size 279978
|
dev.tsv
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:3801a557d397de5298984b5acad006f0f48d92be86a2231de09d1020fe6d15e2
|
3 |
-
size 212831
|
|
|
|
|
|
|
|
test.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a1d0c4a3174597486750ae7da790a78821b70f4041ee65acf9a373c049693a5c
|
3 |
+
size 279597
|
test.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Python script to check the data types in a JSONL file
|
2 |
+
import json
|
3 |
+
import argparse
|
4 |
+
|
5 |
+
def check_data_types(jsonl_file_path):
|
6 |
+
with open(jsonl_file_path, 'r') as f:
|
7 |
+
for i, line in enumerate(f):
|
8 |
+
data = json.loads(line)
|
9 |
+
if not isinstance(data.get('text', None), str):
|
10 |
+
print(f"Inconsistent data type at row {i+1}. 'text' is not a string.")
|
11 |
+
if not isinstance(data.get('language', None), str):
|
12 |
+
print(f"Inconsistent data type at row {i+1}. 'language' is not a string.")
|
13 |
+
|
14 |
+
if __name__ == "__main__":
|
15 |
+
parser = argparse.ArgumentParser(description='Check data types in a JSONL file.')
|
16 |
+
parser.add_argument('--jsonl_file_path', required=True, help='Path to the JSONL file.')
|
17 |
+
|
18 |
+
args = parser.parse_args()
|
19 |
+
check_data_types(args.jsonl_file_path)
|
20 |
+
|
test.tsv
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:1f7be9964a9c1eebf8a5f21c6c2655d4e060e3848b983f7a457dd5a831d8f7a1
|
3 |
-
size 217175
|
|
|
|
|
|
|
|
train.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80986133a14384cb9cefae1afc9853a62b6a9bbe9c455ed458682238e11f333c
|
3 |
+
size 224449080
|
train.tsv
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c6a7d97ee7216d283036ea11e0234849c06822133a5c00164a255b82b25b3013
|
3 |
-
size 172092683
|
|
|
|
|
|
|
|