opencc-wasm 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +41 -5
  2. package/README.zh.md +42 -6
  3. package/dist/cjs/index.cjs +3 -3
  4. package/dist/cjs/opencc-wasm.cjs +1 -1
  5. package/dist/cjs/opencc-wasm.wasm +0 -0
  6. package/dist/data/config/hk2s.json +25 -26
  7. package/dist/data/config/hk2sp.json +33 -0
  8. package/dist/data/config/hk2sp_jieba.json +36 -0
  9. package/dist/data/config/hk2t.json +11 -15
  10. package/dist/data/config/jp2t.json +12 -19
  11. package/dist/data/config/opencc_config.schema.json +41 -95
  12. package/dist/data/config/s2hk.json +20 -20
  13. package/dist/data/config/s2hk_jieba.json +19 -16
  14. package/dist/data/config/s2hkp.json +28 -0
  15. package/dist/data/config/s2hkp_jieba.json +31 -0
  16. package/dist/data/config/s2t.json +12 -16
  17. package/dist/data/config/s2t_cngov.json +0 -7
  18. package/dist/data/config/s2t_jieba.json +10 -11
  19. package/dist/data/config/s2tw.json +21 -21
  20. package/dist/data/config/s2tw_jieba.json +19 -16
  21. package/dist/data/config/s2twp.json +22 -26
  22. package/dist/data/config/s2twp_jieba.json +20 -21
  23. package/dist/data/config/t2cngov.json +0 -7
  24. package/dist/data/config/t2cngov_keep_simp.json +0 -7
  25. package/dist/data/config/t2hk.json +16 -8
  26. package/dist/data/config/t2jp.json +5 -11
  27. package/dist/data/config/t2s.json +17 -16
  28. package/dist/data/config/t2s_cngov.json +0 -7
  29. package/dist/data/config/t2tw.json +16 -8
  30. package/dist/data/config/tw2s.json +26 -27
  31. package/dist/data/config/tw2sp.json +27 -30
  32. package/dist/data/config/tw2sp_jieba.json +25 -25
  33. package/dist/data/config/tw2t.json +11 -15
  34. package/dist/data/dict/HKPhrases.ocd2 +0 -0
  35. package/dist/data/dict/HKPhrasesRev.ocd2 +0 -0
  36. package/dist/data/dict/HKVariants.ocd2 +0 -0
  37. package/dist/data/dict/HKVariantsPhrases.ocd2 +0 -0
  38. package/dist/data/dict/HKVariantsRev.ocd2 +0 -0
  39. package/dist/data/dict/HKVariantsRevPhrases.ocd2 +0 -0
  40. package/dist/data/dict/JPShinjitaiCharacters.ocd2 +0 -0
  41. package/dist/data/dict/JPShinjitaiCharactersRev.ocd2 +0 -0
  42. package/dist/data/dict/JPShinjitaiPhrases.ocd2 +0 -0
  43. package/dist/data/dict/STCharacters.ocd2 +0 -0
  44. package/dist/data/dict/STPhrases.ocd2 +0 -0
  45. package/dist/data/dict/TSCharacters.ocd2 +0 -0
  46. package/dist/data/dict/TSCharactersExt.ocd2 +0 -0
  47. package/dist/data/dict/TSPhrases.ocd2 +0 -0
  48. package/dist/data/dict/TWPhrases.ocd2 +0 -0
  49. package/dist/data/dict/TWPhrasesRev.ocd2 +0 -0
  50. package/dist/data/dict/TWVariants.ocd2 +0 -0
  51. package/dist/data/dict/TWVariantsPhrases.ocd2 +0 -0
  52. package/dist/data/dict/TWVariantsRev.ocd2 +0 -0
  53. package/dist/data/dict/TWVariantsRevPhrases.ocd2 +0 -0
  54. package/dist/data/dict/cngov/STCharacters.ocd2 +0 -0
  55. package/dist/data/dict/cngov/STPhrases.ocd2 +0 -0
  56. package/dist/data/dict/cngov/TGCharacters.ocd2 +0 -0
  57. package/dist/data/dict/cngov/TGCharacters_keep_simp.ocd2 +0 -0
  58. package/dist/data/dict/cngov/TGPhrases.ocd2 +0 -0
  59. package/dist/data/dict/cngov/TSCharacters.ocd2 +0 -0
  60. package/dist/data/dict/cngov/TSPhrases.ocd2 +0 -0
  61. package/dist/data/jieba_dict/jieba_merged.ocd2 +0 -0
  62. package/dist/data/jieba_dict/user.dict.utf8 +2 -0
  63. package/dist/esm/index.js +2 -0
  64. package/dist/esm/opencc-wasm.js +1 -1
  65. package/dist/esm/opencc-wasm.wasm +0 -0
  66. package/dist/opencc-wasm.wasm +0 -0
  67. package/package.json +1 -1
  68. package/dist/data/dict/JPVariants.ocd2 +0 -0
  69. package/dist/data/dict/JPVariantsRev.ocd2 +0 -0
  70. package/dist/data/dict/cngov/GovVariants.ocd2 +0 -0
  71. package/dist/data/dict/cngov/GovVariants_keep_simp.ocd2 +0 -0
@@ -2,32 +2,31 @@
2
2
  "name": "Traditional Chinese (Hong Kong variant) to Simplified Chinese",
3
3
  "segmentation": {
4
4
  "type": "mmseg",
5
- "dict": {
6
- "type": "ocd2",
7
- "file": "TSPhrases.ocd2"
8
- }
5
+ "dict": { "type": "ocd2", "file": "TSPhrases.ocd2" }
9
6
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "HKVariantsRevPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "HKVariantsRev.ocd2"
19
- }]
20
- }
21
- }, {
22
- "dict": {
23
- "type": "group",
24
- "dicts": [{
25
- "type": "ocd2",
26
- "file": "TSPhrases.ocd2"
27
- }, {
28
- "type": "ocd2",
29
- "file": "TSCharacters.ocd2"
30
- }]
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "HKVariantsRevPhrases.ocd2" },
13
+ { "type": "ocd2", "file": "HKVariantsRev.ocd2" }
14
+ ]
15
+ }
16
+ },
17
+ {
18
+ "dict": {
19
+ "type": "group",
20
+ "dicts": [
21
+ { "type": "ocd2", "file": "TSPhrases.ocd2" },
22
+ {
23
+ "type": "ocd2",
24
+ "file": "TSCharactersExt.ocd2",
25
+ "may_output_tofu": true
26
+ },
27
+ { "type": "ocd2", "file": "TSCharacters.ocd2" }
28
+ ]
29
+ }
31
30
  }
32
- }]
31
+ ]
33
32
  }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "Traditional Chinese (Hong Kong variant) to Simplified Chinese (with phrases)",
3
+ "segmentation": {
4
+ "type": "mmseg",
5
+ "dict": { "type": "ocd2", "file": "TSPhrases.ocd2" }
6
+ },
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "HKPhrasesRev.ocd2" },
13
+ { "type": "ocd2", "file": "HKVariantsRevPhrases.ocd2" },
14
+ { "type": "ocd2", "file": "HKVariantsRev.ocd2" }
15
+ ]
16
+ }
17
+ },
18
+ {
19
+ "dict": {
20
+ "type": "group",
21
+ "dicts": [
22
+ { "type": "ocd2", "file": "TSPhrases.ocd2" },
23
+ {
24
+ "type": "ocd2",
25
+ "file": "TSCharactersExt.ocd2",
26
+ "may_output_tofu": true
27
+ },
28
+ { "type": "ocd2", "file": "TSCharacters.ocd2" }
29
+ ]
30
+ }
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "Traditional Chinese (Hong Kong variant) to Simplified Chinese (with phrases, Jieba Segmentation - Experimental)",
3
+ "segmentation": {
4
+ "type": "jieba",
5
+ "resources": {
6
+ "dict_path": "jieba_dict/jieba_merged.ocd2",
7
+ "model_path": "jieba_dict/hmm_model.utf8"
8
+ }
9
+ },
10
+ "conversion_chain": [
11
+ {
12
+ "dict": {
13
+ "type": "group",
14
+ "dicts": [
15
+ { "type": "ocd2", "file": "HKPhrasesRev.ocd2" },
16
+ { "type": "ocd2", "file": "HKVariantsRevPhrases.ocd2" },
17
+ { "type": "ocd2", "file": "HKVariantsRev.ocd2" }
18
+ ]
19
+ }
20
+ },
21
+ {
22
+ "dict": {
23
+ "type": "group",
24
+ "dicts": [
25
+ { "type": "ocd2", "file": "TSPhrases.ocd2" },
26
+ {
27
+ "type": "ocd2",
28
+ "file": "TSCharactersExt.ocd2",
29
+ "may_output_tofu": true
30
+ },
31
+ { "type": "ocd2", "file": "TSCharacters.ocd2" }
32
+ ]
33
+ }
34
+ }
35
+ ]
36
+ }
@@ -2,21 +2,17 @@
2
2
  "name": "Traditional Chinese (Hong Kong variant) to Traditional Chinese (OpenCC Standard)",
3
3
  "segmentation": {
4
4
  "type": "mmseg",
5
- "dict": {
6
- "type": "ocd2",
7
- "file": "HKVariantsRevPhrases.ocd2"
8
- }
5
+ "dict": { "type": "ocd2", "file": "HKVariantsRevPhrases.ocd2" }
9
6
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "HKVariantsRevPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "HKVariantsRev.ocd2"
19
- }]
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "HKVariantsRevPhrases.ocd2" },
13
+ { "type": "ocd2", "file": "HKVariantsRev.ocd2" }
14
+ ]
15
+ }
20
16
  }
21
- }]
17
+ ]
22
18
  }
@@ -1,25 +1,18 @@
1
1
  {
2
- "name": "New Japanese Kanji (Shinjitai) to Traditional Chinese Characters (Kyūjitai)",
2
+ "name": "New Japanese Kanji (Shinjitai) to Old Japanese Kanji (Kyūjitai)",
3
3
  "segmentation": {
4
4
  "type": "mmseg",
5
- "dict": {
6
- "type": "ocd2",
7
- "file": "JPShinjitaiPhrases.ocd2"
8
- }
5
+ "dict": { "type": "ocd2", "file": "JPShinjitaiPhrases.ocd2" }
9
6
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "JPShinjitaiPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "JPShinjitaiCharacters.ocd2"
19
- }, {
20
- "type": "ocd2",
21
- "file": "JPVariantsRev.ocd2"
22
- }]
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "JPShinjitaiPhrases.ocd2" },
13
+ { "type": "ocd2", "file": "JPShinjitaiCharacters.ocd2" }
14
+ ]
15
+ }
23
16
  }
24
- }]
17
+ ]
25
18
  }
@@ -3,151 +3,97 @@
3
3
  "id": "https://opencc.byvoid.com/schema/opencc_config.schema.json",
4
4
  "title": "OpenCC configuration",
5
5
  "type": "object",
6
- "required": [
7
- "segmentation",
8
- "conversion_chain"
9
- ],
6
+ "required": ["segmentation", "conversion_chain"],
10
7
  "additionalProperties": false,
11
8
  "properties": {
12
- "name": {
13
- "type": "string"
14
- },
15
- "segmentation": {
16
- "$ref": "#/definitions/segmentation"
17
- },
9
+ "name": { "type": "string" },
10
+ "segmentation": { "$ref": "#/definitions/segmentation" },
18
11
  "conversion_chain": {
19
12
  "type": "array",
20
13
  "minItems": 1,
21
- "items": {
22
- "$ref": "#/definitions/conversion"
23
- }
14
+ "items": { "$ref": "#/definitions/conversion" }
24
15
  }
25
16
  },
26
17
  "definitions": {
27
18
  "segmentation": {
28
19
  "anyOf": [
29
- {
30
- "$ref": "#/definitions/mmseg_segmentation"
31
- },
32
- {
33
- "$ref": "#/definitions/plugin_segmentation"
34
- }
20
+ { "$ref": "#/definitions/mmseg_segmentation" },
21
+ { "$ref": "#/definitions/plugin_segmentation" }
35
22
  ]
36
23
  },
37
24
  "mmseg_segmentation": {
38
25
  "type": "object",
39
- "required": [
40
- "type",
41
- "dict"
42
- ],
26
+ "required": ["type", "dict"],
43
27
  "additionalProperties": false,
44
28
  "properties": {
45
- "type": {
46
- "enum": [
47
- "mmseg"
48
- ]
49
- },
50
- "dict": {
51
- "$ref": "#/definitions/dict"
52
- }
29
+ "type": { "enum": ["mmseg"] },
30
+ "dict": { "$ref": "#/definitions/dict" }
53
31
  }
54
32
  },
55
33
  "plugin_segmentation": {
56
34
  "type": "object",
57
- "required": [
58
- "type"
59
- ],
35
+ "required": ["type"],
60
36
  "not": {
61
- "properties": {
62
- "type": {
63
- "enum": [
64
- "mmseg"
65
- ]
66
- }
67
- },
68
- "required": [
69
- "type"
70
- ]
37
+ "properties": { "type": { "enum": ["mmseg"] } },
38
+ "required": ["type"]
71
39
  },
72
40
  "properties": {
73
- "type": {
74
- "type": "string",
75
- "minLength": 1
76
- },
41
+ "type": { "type": "string", "minLength": 1 },
77
42
  "resources": {
78
43
  "type": "object",
79
- "additionalProperties": {
80
- "type": "string"
81
- }
44
+ "additionalProperties": { "type": "string" }
82
45
  }
83
46
  },
84
- "additionalProperties": {
85
- "type": "string"
86
- }
47
+ "additionalProperties": { "type": "string" }
87
48
  },
88
49
  "conversion": {
89
50
  "type": "object",
90
- "required": [
91
- "dict"
92
- ],
51
+ "required": ["dict"],
93
52
  "additionalProperties": false,
94
- "properties": {
95
- "dict": {
96
- "$ref": "#/definitions/dict"
97
- }
98
- }
53
+ "properties": { "dict": { "$ref": "#/definitions/dict" } }
99
54
  },
100
55
  "dict": {
101
56
  "anyOf": [
102
- {
103
- "$ref": "#/definitions/file_dict"
104
- },
105
- {
106
- "$ref": "#/definitions/group_dict"
107
- }
57
+ { "$ref": "#/definitions/file_dict" },
58
+ { "$ref": "#/definitions/inline_dict" },
59
+ { "$ref": "#/definitions/group_dict" }
108
60
  ]
109
61
  },
110
62
  "file_dict": {
111
63
  "type": "object",
112
- "required": [
113
- "type",
114
- "file"
115
- ],
64
+ "required": ["type", "file"],
116
65
  "additionalProperties": false,
117
66
  "properties": {
118
- "type": {
119
- "enum": [
120
- "text",
121
- "ocd",
122
- "ocd2"
123
- ]
124
- },
125
- "file": {
126
- "type": "string",
127
- "minLength": 1
67
+ "type": { "enum": ["text", "ocd", "ocd2"] },
68
+ "file": { "type": "string", "minLength": 1 },
69
+ "may_output_tofu": { "type": "boolean" }
70
+ }
71
+ },
72
+ "inline_dict": {
73
+ "type": "object",
74
+ "required": ["type", "entries"],
75
+ "additionalProperties": false,
76
+ "properties": {
77
+ "type": { "enum": ["inline"] },
78
+ "entries": {
79
+ "type": "object",
80
+ "patternProperties": { ".+": { "type": "string", "minLength": 1 } },
81
+ "additionalProperties": false
128
82
  }
129
83
  }
130
84
  },
131
85
  "group_dict": {
132
86
  "type": "object",
133
- "required": [
134
- "type",
135
- "dicts"
136
- ],
87
+ "required": ["type", "dicts"],
137
88
  "additionalProperties": false,
138
89
  "properties": {
139
- "type": {
140
- "enum": [
141
- "group"
142
- ]
143
- },
90
+ "type": { "enum": ["group"] },
144
91
  "dicts": {
145
92
  "type": "array",
146
93
  "minItems": 1,
147
- "items": {
148
- "$ref": "#/definitions/dict"
149
- }
150
- }
94
+ "items": { "$ref": "#/definitions/dict" }
95
+ },
96
+ "may_output_tofu": { "type": "boolean" }
151
97
  }
152
98
  }
153
99
  }
@@ -2,26 +2,26 @@
2
2
  "name": "Simplified Chinese to Traditional Chinese (Hong Kong variant)",
3
3
  "segmentation": {
4
4
  "type": "mmseg",
5
- "dict": {
6
- "type": "ocd2",
7
- "file": "STPhrases.ocd2"
8
- }
5
+ "dict": { "type": "ocd2", "file": "STPhrases.ocd2" }
9
6
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "STPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "STCharacters.ocd2"
19
- }]
20
- }
21
- }, {
22
- "dict": {
23
- "type": "ocd2",
24
- "file": "HKVariants.ocd2"
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "STPhrases.ocd2" },
13
+ { "type": "ocd2", "file": "STCharacters.ocd2" }
14
+ ]
15
+ }
16
+ },
17
+ {
18
+ "dict": {
19
+ "type": "group",
20
+ "dicts": [
21
+ { "type": "ocd2", "file": "HKVariantsPhrases.ocd2" },
22
+ { "type": "ocd2", "file": "HKVariants.ocd2" }
23
+ ]
24
+ }
25
25
  }
26
- }]
26
+ ]
27
27
  }
@@ -7,21 +7,24 @@
7
7
  "model_path": "jieba_dict/hmm_model.utf8"
8
8
  }
9
9
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "STPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "STCharacters.ocd2"
19
- }]
10
+ "conversion_chain": [
11
+ {
12
+ "dict": {
13
+ "type": "group",
14
+ "dicts": [
15
+ { "type": "ocd2", "file": "STPhrases.ocd2" },
16
+ { "type": "ocd2", "file": "STCharacters.ocd2" }
17
+ ]
18
+ }
19
+ },
20
+ {
21
+ "dict": {
22
+ "type": "group",
23
+ "dicts": [
24
+ { "type": "ocd2", "file": "HKVariantsPhrases.ocd2" },
25
+ { "type": "ocd2", "file": "HKVariants.ocd2" }
26
+ ]
27
+ }
20
28
  }
21
- }, {
22
- "dict": {
23
- "type": "ocd2",
24
- "file": "HKVariants.ocd2"
25
- }
26
- }]
29
+ ]
27
30
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "Simplified Chinese to Traditional Chinese (Hong Kong variant, with phrases)",
3
+ "segmentation": {
4
+ "type": "mmseg",
5
+ "dict": { "type": "ocd2", "file": "STPhrases.ocd2" }
6
+ },
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "STPhrases.ocd2" },
13
+ { "type": "ocd2", "file": "STCharacters.ocd2" }
14
+ ]
15
+ }
16
+ },
17
+ {
18
+ "dict": {
19
+ "type": "group",
20
+ "dicts": [
21
+ { "type": "ocd2", "file": "HKPhrases.ocd2" },
22
+ { "type": "ocd2", "file": "HKVariantsPhrases.ocd2" },
23
+ { "type": "ocd2", "file": "HKVariants.ocd2" }
24
+ ]
25
+ }
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "Simplified Chinese to Traditional Chinese (Hong Kong variant, with phrases, Jieba Segmentation - Experimental)",
3
+ "segmentation": {
4
+ "type": "jieba",
5
+ "resources": {
6
+ "dict_path": "jieba_dict/jieba_merged.ocd2",
7
+ "model_path": "jieba_dict/hmm_model.utf8"
8
+ }
9
+ },
10
+ "conversion_chain": [
11
+ {
12
+ "dict": {
13
+ "type": "group",
14
+ "dicts": [
15
+ { "type": "ocd2", "file": "STPhrases.ocd2" },
16
+ { "type": "ocd2", "file": "STCharacters.ocd2" }
17
+ ]
18
+ }
19
+ },
20
+ {
21
+ "dict": {
22
+ "type": "group",
23
+ "dicts": [
24
+ { "type": "ocd2", "file": "HKPhrases.ocd2" },
25
+ { "type": "ocd2", "file": "HKVariantsPhrases.ocd2" },
26
+ { "type": "ocd2", "file": "HKVariants.ocd2" }
27
+ ]
28
+ }
29
+ }
30
+ ]
31
+ }
@@ -1,22 +1,18 @@
1
1
  {
2
- "name": "Simplified Chinese to Traditional Chinese",
2
+ "name": "Simplified Chinese to Traditional Chinese (OpenCC Standard)",
3
3
  "segmentation": {
4
4
  "type": "mmseg",
5
- "dict": {
6
- "type": "ocd2",
7
- "file": "STPhrases.ocd2"
8
- }
5
+ "dict": { "type": "ocd2", "file": "STPhrases.ocd2" }
9
6
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "STPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "STCharacters.ocd2"
19
- }]
7
+ "conversion_chain": [
8
+ {
9
+ "dict": {
10
+ "type": "group",
11
+ "dicts": [
12
+ { "type": "ocd2", "file": "STPhrases.ocd2" },
13
+ { "type": "ocd2", "file": "STCharacters.ocd2" }
14
+ ]
15
+ }
20
16
  }
21
- }]
17
+ ]
22
18
  }
@@ -1,12 +1,5 @@
1
1
  {
2
2
  "name": "Simplified Chinese to Traditional Chinese (The Chinese Government Standard)",
3
- "author": "TerryTian-tech",
4
- "license": "Apache License 2.0",
5
- "source": "https://github.com/TerryTian-tech/OpenCC-Traditional-Chinese-characters-according-to-Chinese-government-standards",
6
- "contributors": ["TerryTian-tech", "Yi Jianpeng", "Hu Xinmei", "Duan Yatong"],
7
- "reference": "《通用规范汉字表》(2013)",
8
- "description": "Conservative conversion that preserves intentional simplified characters in mixed documents while standardizing traditional characters only.",
9
-
10
3
  "segmentation": {
11
4
  "type": "mmseg",
12
5
  "dict": {
@@ -7,16 +7,15 @@
7
7
  "model_path": "jieba_dict/hmm_model.utf8"
8
8
  }
9
9
  },
10
- "conversion_chain": [{
11
- "dict": {
12
- "type": "group",
13
- "dicts": [{
14
- "type": "ocd2",
15
- "file": "STPhrases.ocd2"
16
- }, {
17
- "type": "ocd2",
18
- "file": "STCharacters.ocd2"
19
- }]
10
+ "conversion_chain": [
11
+ {
12
+ "dict": {
13
+ "type": "group",
14
+ "dicts": [
15
+ { "type": "ocd2", "file": "STPhrases.ocd2" },
16
+ { "type": "ocd2", "file": "STCharacters.ocd2" }
17
+ ]
18
+ }
20
19
  }
21
- }]
20
+ ]
22
21
  }