| 1 | { |
| 2 | "name": "Example: Simplified Chinese to Taiwan Traditional with 台灣 override", |
| 3 | "segmentation": { |
| 4 | "type": "mmseg", |
| 5 | "dict": { |
| 6 | "type": "group", |
| 7 | "match_policy": "short_circuit", |
| 8 | "dicts": [ |
| 9 | { |
| 10 | "type": "inline", |
| 11 | "entries": { |
| 12 | "台湾": "台湾", |
| 13 | "臺灣": "臺灣" |
| 14 | } |
| 15 | }, |
| 16 | { "type": "ocd2", "file": "STPhrases.ocd2" } |
| 17 | ] |
| 18 | } |
| 19 | }, |
| 20 | "conversion_chain": [ |
| 21 | { |
| 22 | "dict": { |
| 23 | "type": "group", |
| 24 | "match_policy": "short_circuit", |
| 25 | "dicts": [ |
| 26 | { "type": "ocd2", "file": "STPhrases.ocd2" }, |
| 27 | { "type": "ocd2", "file": "STCharacters.ocd2" } |
| 28 | ] |
| 29 | } |
| 30 | }, |
| 31 | { |
| 32 | "dict": { |
| 33 | "type": "group", |
| 34 | "match_policy": "short_circuit", |
| 35 | "dicts": [ |
| 36 | { |
| 37 | "type": "inline", |
| 38 | "entries": { |
| 39 | "臺灣": "台灣" |
| 40 | } |
| 41 | }, |
| 42 | { "type": "ocd2", "file": "TWPhrases.ocd2" }, |
| 43 | { "type": "ocd2", "file": "TWVariantsPhrases.ocd2" }, |
| 44 | { "type": "ocd2", "file": "TWVariants.ocd2" } |
| 45 | ] |
| 46 | } |
| 47 | } |
| 48 | ] |
| 49 | } |