File size: 2,549 Bytes
d4558b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  "$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"}}
      }
    }
  }
}