Datasets:
Add new data
Browse files- convert.py +1 -4
- 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("
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c83400bbdabc3caa92ca7acebdb2996f939c8bfe4fe1f663258a1145115d8ef
|
3 |
+
size 280731383
|