pere commited on
Commit
db4f246
1 Parent(s): 7696b52
Files changed (2) hide show
  1. README.md +2 -2
  2. test.py +0 -20
README.md CHANGED
@@ -28,9 +28,9 @@ This dataset is intended for language detection for Bokmål to Nynorsk and vice
28
  ## Data Collection
29
 
30
  - **Period**: February 2011 to December 2022
31
- - **Source**: [Språkbanken](https://www.nb.no/sprakbanken/)
32
  - **Size**: 800,000 sentence pairs
33
- - **Format**: JSON-lines (with `text` , `label`, `label_full` fields)
34
 
35
  ### Processing Steps
36
 
 
28
  ## Data Collection
29
 
30
  - **Period**: February 2011 to December 2022
31
+ - **Source**: [Omsetjingsminne frå Nynorsk Pressekontor - Språkbanken](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-80/)
32
  - **Size**: 800,000 sentence pairs
33
+ - **Format**: JSON-lines (with `text` , `language` fields)
34
 
35
  ### Processing Steps
36
 
test.py DELETED
@@ -1,20 +0,0 @@
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
-