Spaces:
Sleeping
Sleeping
Download data/output_schema.json from arcalab/semantic-extraction: direct link, hf CLI and curl.
- Browser
- Download file 2.75 kB
-
https://huggingface.co/spaces/arcalab/semantic-extraction/resolve/main/data/output_schema.json
- Command line
-
hf download hf://spaces/arcalab/semantic-extraction/data/output_schema.json
-
curl -L -o output_schema.json https://huggingface.co/spaces/arcalab/semantic-extraction/resolve/main/data/output_schema.json
2.75 kB
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "Semantic Extraction Output", | |
| "type": "object", | |
| "required": [ | |
| "document_type", | |
| "summary", | |
| "workflow", | |
| "entities", | |
| "decisions", | |
| "action_items", | |
| "metadata" | |
| ], | |
| "properties": { | |
| "document_type": { | |
| "type": "string", | |
| "enum": [ | |
| "sop", | |
| "meeting_notes", | |
| "email", | |
| "support_ticket" | |
| ] | |
| }, | |
| "summary": { | |
| "type": "string" | |
| }, | |
| "workflow": { | |
| "type": "object", | |
| "required": ["steps"], | |
| "properties": { | |
| "steps": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "required": ["order", "action", "owner", "condition"], | |
| "properties": { | |
| "order": {"type": "integer", "minimum": 1}, | |
| "action": {"type": "string"}, | |
| "owner": {"type": ["string", "null"]}, | |
| "condition": {"type": ["string", "null"]} | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "entities": { | |
| "type": "object", | |
| "required": [ | |
| "people", | |
| "organizations", | |
| "monetary_values", | |
| "dates", | |
| "systems" | |
| ], | |
| "properties": { | |
| "people": {"type": "array", "items": {"type": "string"}}, | |
| "organizations": {"type": "array", "items": {"type": "string"}}, | |
| "monetary_values": {"type": "array", "items": {"type": "string"}}, | |
| "dates": {"type": "array", "items": {"type": "string"}}, | |
| "systems": {"type": "array", "items": {"type": "string"}} | |
| } | |
| }, | |
| "decisions": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "required": ["condition", "action", "confidence"], | |
| "properties": { | |
| "condition": {"type": "string"}, | |
| "action": {"type": "string"}, | |
| "confidence": {"type": "number", "minimum": 0, "maximum": 1} | |
| } | |
| } | |
| }, | |
| "action_items": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "required": ["task", "owner", "deadline", "priority"], | |
| "properties": { | |
| "task": {"type": "string"}, | |
| "owner": {"type": ["string", "null"]}, | |
| "deadline": {"type": ["string", "null"]}, | |
| "priority": { | |
| "type": "string", | |
| "enum": ["high", "medium", "low"] | |
| } | |
| } | |
| } | |
| }, | |
| "metadata": { | |
| "type": "object", | |
| "required": ["extraction_method", "confidence", "token_count"], | |
| "properties": { | |
| "extraction_method": {"type": "string", "enum": ["gemini", "heuristic"]}, | |
| "confidence": {"type": "number", "minimum": 0, "maximum": 1}, | |
| "token_count": {"type": "integer", "minimum": 0} | |
| } | |
| } | |
| } | |
| } | |