comradev7 commited on
Commit
4fb167c
·
verified ·
1 Parent(s): d60e203

Upload schema.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. schema.json +33 -0
schema.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.0",
3
+ "repo_type": "dataset",
4
+ "about": "Contract for the multi-track Scenic Font Analysis dataset. Every track lives in its own track_<letter>/ folder and must follow this schema so tracks can be merged without drift.",
5
+ "layout": {
6
+ "track_dir_pattern": "track_[a-z]",
7
+ "required_files": ["ground_truth.csv", "images/"],
8
+ "optional_files": ["manifest.json", "README.md"],
9
+ "image_location": "images/<image_filename>"
10
+ },
11
+ "ground_truth.csv": {
12
+ "columns": [
13
+ {"name": "image_filename", "type": "string", "required": true, "description": "Basename of the file inside images/ (e.g. regular_00000.jpg)."},
14
+ {"name": "language", "type": "string", "required": true, "description": "e.g. hindi / japanese / korean."},
15
+ {"name": "font_family", "type": "string", "required": true},
16
+ {"name": "font_style", "type": "string", "required": true, "description": "Raw source style/weight label, kept for provenance."},
17
+ {"name": "style_unified", "type": "string", "required": true, "allowed": ["regular", "bold", "italic", "bolditalic"], "description": "Canonical taxonomy produced by taxonomy.unify_style()."},
18
+ {"name": "split", "type": "string", "required": true, "allowed": ["train", "val", "test"]},
19
+ {"name": "is_clean", "type": "boolean", "required": true},
20
+ {"name": "text", "type": "string", "required": true}
21
+ ]
22
+ },
23
+ "label_spaces": {
24
+ "style_unified": ["regular", "bold", "italic", "bolditalic"],
25
+ "split": ["train", "val", "test"]
26
+ },
27
+ "unique_key": ["track", "image_filename"],
28
+ "notes": [
29
+ "Track A collapses 9 raw weights: thin/extralight/light/regular/medium -> regular; semibold/bold/extrabold/black -> bold.",
30
+ "Italic/oblique raw labels map to italic (or bolditalic when the weight bucket is bold).",
31
+ "image_filename must be unique within a track; the merged key is (track, image_filename)."
32
+ ]
33
+ }