Datasets:
Download code/scripts/dialogue_extraction_openai_config.json from kuramot6f/classical-ja-pretrain: direct link, hf CLI and curl.
- Browser
- Download file 3.68 kB
-
https://huggingface.co/datasets/kuramot6f/classical-ja-pretrain/resolve/main/code/scripts/dialogue_extraction_openai_config.json
- Command line
-
hf download hf://datasets/kuramot6f/classical-ja-pretrain/code/scripts/dialogue_extraction_openai_config.json
-
curl -L -o dialogue_extraction_openai_config.json https://huggingface.co/datasets/kuramot6f/classical-ja-pretrain/resolve/main/code/scripts/dialogue_extraction_openai_config.json
3.68 kB
| { | |
| "input": "unified/pretrain-v1/build-003/pretrain.jsonl", | |
| "splits": "unified/training-tokens-v1/build-006/splits.jsonl", | |
| "prompt": "scripts/dialogue_extraction_prompt.txt", | |
| "sources": [ | |
| "wikisource", | |
| "minhon" | |
| ], | |
| "splits_include": [ | |
| "train", | |
| "validation", | |
| "test" | |
| ], | |
| "seed": 20261026, | |
| "chunk_chars": 20000, | |
| "overlap_chars": 1000, | |
| "boundary_margin_chars": 80, | |
| "min_split_chars": 800, | |
| "max_split_depth": 4, | |
| "api": { | |
| "base_url": "https://api.openai.com/v1", | |
| "model": "gpt-6-luna", | |
| "thinking": "enabled", | |
| "reasoning_effort": "low", | |
| "temperature": 0, | |
| "max_tokens": 16384, | |
| "timeout_seconds": 180, | |
| "workers": 2, | |
| "attempts_per_invocation": 3, | |
| "retry_base_seconds": 2, | |
| "provider": "openai", | |
| "response_format": { | |
| "type": "json_schema", | |
| "json_schema": { | |
| "name": "classical_dialogue_extraction", | |
| "strict": true, | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "scenes": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "context_dependence": { | |
| "type": "integer", | |
| "enum": [ | |
| 0, | |
| 1, | |
| 2, | |
| 3 | |
| ] | |
| }, | |
| "extraction_confidence": { | |
| "type": "integer", | |
| "enum": [ | |
| 0, | |
| 1, | |
| 2, | |
| 3 | |
| ] | |
| }, | |
| "turns": { | |
| "type": "array", | |
| "minItems": 2, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "speaker": { | |
| "type": "string", | |
| "enum": [ | |
| "A", | |
| "B", | |
| "C", | |
| "D", | |
| "E", | |
| "F", | |
| "G", | |
| "H", | |
| "I", | |
| "J", | |
| "K", | |
| "L", | |
| "M", | |
| "N", | |
| "O", | |
| "P", | |
| "Q", | |
| "R", | |
| "S", | |
| "T", | |
| "U", | |
| "V", | |
| "W", | |
| "X", | |
| "Y", | |
| "Z" | |
| ] | |
| }, | |
| "text": { | |
| "type": "string", | |
| "pattern": "\\S" | |
| } | |
| }, | |
| "required": [ | |
| "speaker", | |
| "text" | |
| ], | |
| "additionalProperties": false | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "context_dependence", | |
| "extraction_confidence", | |
| "turns" | |
| ], | |
| "additionalProperties": false | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "scenes" | |
| ], | |
| "additionalProperties": false | |
| } | |
| } | |
| } | |
| } | |
| } | |