Datasets:

Languages:
Chinese
Tags:
Not-For-All-Audiences
License:
Limour commited on
Commit
4e71714
·
verified ·
1 Parent(s): f2f9761

霞流宝石心-壮志凌云振寰宇- @ 破琵琶生产公社 | SakuraLLM数据集

Browse files
v-corpus-zh/CabbageSoft/霞流宝石心-壮志凌云振寰宇-/0.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45530d64b7c0804310308b5cb61c580150ee89b371e7a6ce3e72d6ef5f39ba37
3
+ size 1053865
v-corpus-zh/CabbageSoft/霞流宝石心-壮志凌云振寰宇-/霞流宝石心_json.py ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ sys.path.append('..')
3
+
4
+ from common import clearT, get_all_files_in_directory
5
+ # https://huggingface.co/datasets/Limour/archvie/blob/main/v-corpus-zh/common.py
6
+
7
+ # =================
8
+
9
+ a = get_all_files_in_directory(r'E:\galgame\霞流宝石心\json_cn', ext='.json')
10
+ b = r'E:\galgame\霞流宝石心\text'
11
+
12
+ # =================
13
+
14
+ sc = {}
15
+ _n = {
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
+ "学生1" : "学生1",
54
+ "学生2" : "学生2",
55
+ "老管家" : "老管家",
56
+ "校工" : "校工",
57
+ "趾高气扬的男生" : "趾高气扬的男生",
58
+ "豹形兽人" : "豹形兽人",
59
+ "奇德鲁" : "奇德鲁",
60
+ "魔犬" : "魔犬",
61
+ "雨菊" : "雨菊",
62
+ "其他班的学生1" : "其他班的学生1",
63
+ "其他班的学生2" : "其他班的学生2",
64
+ "约瑟夫" : "约瑟夫",
65
+ "艾米莉" : "艾米莉",
66
+ "扎克" : "扎克",
67
+ "科莉特" : "科莉特",
68
+ "安迪" : "安迪",
69
+ "沉默的男子" : "沉默的男子",
70
+ "赤兔" : "赤兔",
71
+ "伊莉雅" : "伊莉雅",
72
+ "让" : "让",
73
+ "亨特" : "亨特",
74
+ "达里尔" : "达里尔",
75
+ "贝尔卡&维欧" : "贝尔卡&维欧",
76
+ "比伊" : "比伊",
77
+ "艾伦" : "艾伦",
78
+ "伊恩" : "伊恩",
79
+ "特德" : "特德",
80
+ "大家" : "大家",
81
+ "?" : "?",
82
+ "塞西莉亚" : "塞西莉亚",
83
+ "格泽尔曼" : "格泽尔曼",
84
+ "希" : "希",
85
+ "持剑男人" : "持剑男人",
86
+ "可疑女子" : "可疑女子",
87
+ "菲利普" : "菲利普",
88
+ "野蛇" : "野蛇",
89
+ "卡罗琳娜" : "卡罗琳娜",
90
+ "小凯露" : "小凯露",
91
+ "绿色眼镜蛇" : "绿色眼镜蛇",
92
+ "男人的声音" : "男人的声音",
93
+ "军人" : "军人",
94
+ "保安" : "保安",
95
+ "梅纳德" : "梅纳德",
96
+ "盗贼啰喽" : "盗贼啰喽",
97
+ "盗贼头目" : "盗贼头目",
98
+ "路人" : "路人",
99
+ "弗里吉亚卫兵" : "弗里吉亚卫兵",
100
+ "涅斯托尔士官长" : "涅斯托尔士官长",
101
+ "里卡多" : "里卡多",
102
+ "肯内特" : "肯内特",
103
+ "女性情报官" : "女性情报官",
104
+ "华生" : "华生",
105
+ "多萝西" : "多萝西",
106
+ "弗里吉亚士兵" : "弗里吉亚士兵",
107
+ "勇敢的高年级学生" : "勇敢的高年级学生",
108
+ "持双剑的高年级生" : "持双剑的高年级生",
109
+ "诺亚" : "诺亚",
110
+ "两人一齐" : "两人一齐",
111
+ "卡拉的母亲" : "卡拉的母亲",
112
+ "卡拉的父亲" : "卡拉的父亲",
113
+ "妖艳女人" : "妖艳女人",
114
+ "露西尔" : "露西尔",
115
+ "克拉拉" : "克拉拉",
116
+ "埃玛" : "埃玛",
117
+ "神秘广播" : "神秘广播",
118
+ "巴西利斯克" : "巴西利斯克",
119
+ "弗里吉亚众士兵" : "弗里吉亚众士兵",
120
+ "吉梅尔" : "吉梅尔",
121
+ "亨利" : "亨利",
122
+ "卡米拉" : "卡米拉",
123
+ "艾内骑士" : "艾内骑士",
124
+ "丹准将" : "丹准将",
125
+ "亚特拉斯市民" : "亚特拉斯市民",
126
+ "克里斯蒂安" : "克里斯蒂安",
127
+ "加夫百炼队" : "加夫百炼队",
128
+ "胡狼兽人" : "胡狼兽人",
129
+ "店老板" : "店老板",
130
+ "卖报人" : "卖报人",
131
+ "魔像人偶" : "魔像人偶",
132
+ "收音机中" : "收音机中",
133
+ "贝尔卡&宗真" : "贝尔卡&宗真",
134
+ "老人的声音" : "老人的声音",
135
+ "拉姆达" : "拉姆达",
136
+ "卡帕" : "卡帕",
137
+ "奔逃的老人" : "奔逃的老人",
138
+ "我们" : "我们",
139
+ "敏捷的魔像人偶" : "敏捷的魔像人偶",
140
+ "帕拉斯" : "帕拉斯",
141
+ "克希" : "克希",
142
+ "罗" : "罗",
143
+ "西塔" : "西塔",
144
+ "努" : "努",
145
+ "约塔" : "约塔",
146
+ "艾什礼" : "艾什礼",
147
+ "佩克" : "佩克",
148
+ "母亲的声音" : "母亲的声音",
149
+ "父亲的声音" : "父亲的声音",
150
+ "石像的呻吟" : "石像的呻吟",
151
+ "美杜莎士兵?" : "美杜莎士兵?",
152
+ "鸡蛇兽?" : "鸡蛇兽?",
153
+ "神秘生命" : "神秘生命",
154
+ "宗真&映红" : "宗真&映红",
155
+ "示威群众" : "示威群众",
156
+ "弗里吉亚皇帝" : "弗里吉亚皇帝",
157
+ "格伦" : "格伦",
158
+ "鲁克" : "鲁克",
159
+ "凯特" : "凯特",
160
+ "奔逃的女人" : "奔逃的女人",
161
+ "特洛伊士兵" : "特洛伊士兵",
162
+ "瓦尼教国使节" : "瓦尼教国使节",
163
+ "亚该亚使节" : "亚该亚使节",
164
+ "卡里亚代表" : "卡里亚代表",
165
+ "男杀手" : "男杀手",
166
+ "柯尔" : "柯尔",
167
+ "齐声" : "齐声",
168
+ "紫发女人" : "紫发女人",
169
+ "迷路少女" : "迷路少女",
170
+ "利布拉" : "利布拉",
171
+ "人类女子" : "人类女子",
172
+ "齐格" : "齐格",
173
+ "保罗" : "保罗",
174
+ "梅耶尔" : "梅耶尔",
175
+ "二人" : "二人",
176
+ "三人一齐" : "三人一齐",
177
+ "尤瑞艾莉" : "尤瑞艾莉",
178
+ "格泽尔曼一世" : "格泽尔曼一世",
179
+ "毒蛇" : "毒蛇",
180
+ "充满眷恋的声音" : "充满眷恋的声音",
181
+ "花枝招展的女人" : "花枝招展的女人",
182
+ "、贝尔卡" : "贝尔卡"
183
+ }
184
+
185
+ # =================
186
+ import json
187
+ import re
188
+ reg_q = re.compile(r'[?\s]+')
189
+
190
+ for path in a:
191
+ name = path[path.rindex('\\') + 1:]
192
+ name = '0'
193
+ if name not in sc:
194
+ sc[name] = []
195
+ print(name)
196
+ # =================
197
+
198
+ with open(path, 'r', encoding='utf-8') as json_file:
199
+ data = json.load(json_file)
200
+
201
+ # =================
202
+ for line in data:
203
+ if 'name' in line:
204
+ n = line['name']
205
+ if n in _n:
206
+ n = _n[n]
207
+ else:
208
+ tmp = clearT(n).replace('・', '&')
209
+ tmp = reg_q.sub('?', tmp)
210
+ _n[n] = tmp.split('//')[-1].replace(' ', '')
211
+ print(line, n)
212
+ else:
213
+ n = '旁白'
214
+ d = line['message']
215
+ if d:
216
+ sc[name].append(n + ':' + d)
217
+
218
+ # =================
219
+
220
+ for k, v in sc.items():
221
+ if v:
222
+ with open(b + f'\\{k}.txt', 'w', encoding='utf-8') as f:
223
+ f.write('\n'.join(v))
224
+
225
+ # =================
226
+ import json
227
+ tmp = json.dumps(_n, ensure_ascii=False, indent=4)