UniversalLabeler / schemas /controlled-action-matrix.schema.json
itspublu's picture
Release UniversalLabeler 1.0 data, schemas, examples, and rubrics
d4558b2 verified
Raw
History Blame Contribute Delete
2.55 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://huggingface.co/datasets/itspublu/UniversalLabeler/resolve/v1.0.0/schemas/controlled-action-matrix.schema.json",
"title": "UniversalLabeler controlled-action conformance row",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"frame_id",
"semantic_frame",
"source",
"surfaces",
"release_status",
"profile_bundle_digest"
],
"properties": {
"schema_version": {"const": "1.0.0"},
"frame_id": {"type": "string", "pattern": "^[a-z][a-z0-9_]*__[a-z][a-z0-9_]*$"},
"semantic_frame": {
"type": "object",
"additionalProperties": false,
"required": ["predicate_concept_id", "patient_concept_id", "speech_act"],
"properties": {
"predicate_concept_id": {"type": "string", "minLength": 1},
"patient_concept_id": {"type": "string", "minLength": 1},
"speech_act": {"const": "directive"}
}
},
"source": {
"type": "object",
"additionalProperties": false,
"required": ["language_profile_id", "language_tag", "text"],
"properties": {
"language_profile_id": {"const": "human.en.controlled_action_v1"},
"language_tag": {"const": "en"},
"text": {"type": "string", "minLength": 1}
}
},
"surfaces": {
"type": "object",
"additionalProperties": false,
"required": ["en", "zh-Hans", "tl", "es", "hi"],
"properties": {
"en": {"$ref": "#/$defs/surface"},
"zh-Hans": {"$ref": "#/$defs/surface"},
"tl": {"$ref": "#/$defs/surface"},
"es": {"$ref": "#/$defs/surface"},
"hi": {"$ref": "#/$defs/surface"}
}
},
"release_status": {"const": "synthetic_conformance_not_translation_gold"},
"profile_bundle_digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}
},
"$defs": {
"surface": {
"type": "object",
"additionalProperties": false,
"required": ["language_profile_id", "language_tag", "text", "meaning_digest", "method", "loss_report"],
"properties": {
"language_profile_id": {"type": "string", "minLength": 1},
"language_tag": {"enum": ["en", "zh-Hans", "tl", "es", "hi"]},
"text": {"type": "string", "minLength": 1},
"meaning_digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
"method": {"enum": ["source", "pinned_algorithm"]},
"loss_report": {"type": "array", "items": {"type": "object"}}
}
}
}
}