pere commited on
Commit
21fc87c
1 Parent(s): d546bcf
Files changed (7) hide show
  1. dev.jsonl +2 -2
  2. dev.tsv +0 -3
  3. test.jsonl +2 -2
  4. test.py +20 -0
  5. test.tsv +0 -3
  6. train.jsonl +2 -2
  7. train.tsv +0 -3
dev.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:580ebd255f3c7f23fa7009503389d2bc311fb09b25d700ef74d2541f4b7c0085
3
- size 285144
 
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:f9ad3d47dc71ccc26dd8e07050ffa82f7de738e8b26089a96eb4d29340553f45
3
- size 290184
 
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:3152de47fb1b608f9d39c8da53cbced0b525980c3fac0ba13578a7dd25e82578
3
- size 229932715
 
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