Download schema.json from RegalFire/GCC-InvoiceMath-Verified: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/datasets/RegalFire/GCC-InvoiceMath-Verified/resolve/main/schema.json
- Command line
-
hf download hf://datasets/RegalFire/GCC-InvoiceMath-Verified/schema.json
-
curl -L -o schema.json https://huggingface.co/datasets/RegalFire/GCC-InvoiceMath-Verified/resolve/main/schema.json
3.95 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "type": "object", | |
| "required": [ | |
| "id", | |
| "pair_id", | |
| "seed", | |
| "split", | |
| "country", | |
| "family", | |
| "contract_id", | |
| "invoice", | |
| "expected", | |
| "provenance", | |
| "mutation", | |
| "fingerprint_sha256" | |
| ], | |
| "properties": { | |
| "id": { "type": "string", "minLength": 32, "maxLength": 32 }, | |
| "pair_id": { "type": "string", "minLength": 24, "maxLength": 24 }, | |
| "seed": { "type": "integer" }, | |
| "split": { "enum": ["train", "validation", "test"] }, | |
| "country": { "enum": ["SA", "AE", "QA", "KW", "BH", "OM"] }, | |
| "family": { | |
| "enum": [ | |
| "half_up_tie", | |
| "line_vs_document_rounding", | |
| "line_allowance", | |
| "line_charge", | |
| "prepayment", | |
| "credit_note", | |
| "large_amount_stress", | |
| "zero_rate", | |
| "mixed_rates", | |
| "zero_due" | |
| ] | |
| }, | |
| "contract_id": { "const": "gcc-invoice-math-1.0" }, | |
| "invoice": { | |
| "type": "object", | |
| "required": [ | |
| "currency", | |
| "document_type", | |
| "numeric_style", | |
| "lines", | |
| "prepaid", | |
| "claimed_totals" | |
| ], | |
| "properties": { | |
| "currency": { "enum": ["SAR", "AED", "QAR", "KWD", "BHD", "OMR"] }, | |
| "document_type": { "enum": ["invoice", "credit_note"] }, | |
| "numeric_style": { | |
| "enum": [ | |
| "ascii", | |
| "arabic_indic", | |
| "grouped_ascii", | |
| "grouped_arabic_indic" | |
| ] | |
| }, | |
| "lines": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "required": ["quantity", "unit_price", "allowance", "charge", "rate"], | |
| "properties": { | |
| "quantity": { "type": "string" }, | |
| "unit_price": { "type": "string" }, | |
| "allowance": { "type": "string" }, | |
| "charge": { "type": "string" }, | |
| "rate": { "type": "string" } | |
| }, | |
| "additionalProperties": false | |
| } | |
| }, | |
| "prepaid": { "type": "string" }, | |
| "claimed_totals": { | |
| "type": "object", | |
| "required": ["net", "tax", "gross", "due"], | |
| "properties": { | |
| "net": { "type": "string" }, | |
| "tax": { "type": "string" }, | |
| "gross": { "type": "string" }, | |
| "due": { "type": "string" } | |
| }, | |
| "additionalProperties": false | |
| } | |
| }, | |
| "additionalProperties": false | |
| }, | |
| "expected": { | |
| "type": "object", | |
| "required": ["valid", "totals", "error_fields"], | |
| "properties": { | |
| "valid": { "type": "boolean" }, | |
| "totals": { | |
| "type": "object", | |
| "required": ["net", "tax", "gross", "due"], | |
| "properties": { | |
| "net": { "type": "string" }, | |
| "tax": { "type": "string" }, | |
| "gross": { "type": "string" }, | |
| "due": { "type": "string" } | |
| }, | |
| "additionalProperties": false | |
| }, | |
| "error_fields": { | |
| "type": "array", | |
| "items": { "enum": ["net", "tax", "gross", "due"] } | |
| } | |
| }, | |
| "additionalProperties": false | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "required": [ | |
| "synthetic", | |
| "external_sources_used_for_research", | |
| "copied_records", | |
| "generation_method", | |
| "license_reviewed", | |
| "license_review_scope", | |
| "model" | |
| ] | |
| }, | |
| "mutation": { | |
| "anyOf": [ | |
| { "type": "null" }, | |
| { | |
| "type": "object", | |
| "required": ["path", "delta", "single_change"], | |
| "properties": { | |
| "path": { "type": "string" }, | |
| "delta": { "type": "string" }, | |
| "single_change": { "const": true } | |
| } | |
| } | |
| ] | |
| }, | |
| "fingerprint_sha256": { "type": "string", "minLength": 64, "maxLength": 64 } | |
| }, | |
| "additionalProperties": false | |
| } | |