kobkrit commited on
Commit
e4f03d0
1 Parent(s): 490d9c0

Add new data

Browse files
Files changed (2) hide show
  1. convert.py +1 -4
  2. train.parquet +2 -2
convert.py CHANGED
@@ -22,9 +22,6 @@ def create_dataset():
22
  for i, label_path in enumerate(label_files):
23
  print(f"\nProcessing label file {i+1}/{len(label_files)}: {label_path}")
24
 
25
- if (i > 1):
26
- break
27
-
28
  # Read label file with Windows-874 encoding
29
  print("Reading label file...")
30
  with codecs.open(label_path, 'r', encoding='cp874') as f:
@@ -62,7 +59,7 @@ def create_dataset():
62
  print("Converting to dataframe...")
63
  df = pd.DataFrame(data)
64
  print("Saving to parquet file...")
65
- df.to_parquet("handwriting/train-00000-of-00001.parquet", index=False)
66
  print("Dataset creation complete!")
67
 
68
  if __name__ == "__main__":
 
22
  for i, label_path in enumerate(label_files):
23
  print(f"\nProcessing label file {i+1}/{len(label_files)}: {label_path}")
24
 
 
 
 
25
  # Read label file with Windows-874 encoding
26
  print("Reading label file...")
27
  with codecs.open(label_path, 'r', encoding='cp874') as f:
 
59
  print("Converting to dataframe...")
60
  df = pd.DataFrame(data)
61
  print("Saving to parquet file...")
62
+ df.to_parquet("train.parquet", index=False)
63
  print("Dataset creation complete!")
64
 
65
  if __name__ == "__main__":
train.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cca39500aada63e183962dee73ed77aef60ca0eb8dcc9055b27a5338090ca248
3
- size 26044477
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c83400bbdabc3caa92ca7acebdb2996f939c8bfe4fe1f663258a1145115d8ef
3
+ size 280731383