Upload 6 files
Browse files
v-corpus-zh/Qruppo/拔作岛/拔作岛a/C.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49d4810a6c52fffea8be845324e513100c35a84e061f2ad3e36d05f6aa4a07d3
|
3 |
+
size 187476
|
v-corpus-zh/Qruppo/拔作岛/拔作岛a/FK.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb15cc1f63f7feee94e7228b0e0ae28e093954b18a187bc6c0b197b36becfc1d
|
3 |
+
size 274034
|
v-corpus-zh/Qruppo/拔作岛/拔作岛a/HW.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4768f55ef663b6c078c42e27da5075c4df4e0a6980044a7407a5e591e0fc63a
|
3 |
+
size 255203
|
v-corpus-zh/Qruppo/拔作岛/拔作岛a/MH.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:885f9779161a47b0fb414203213e5dea4b596709b054c04af716c08dd1638ffa
|
3 |
+
size 260274
|
v-corpus-zh/Qruppo/拔作岛/拔作岛a/NK.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73a74fbe1092dd40f5e1d59ca07855da0bb5b707d9cd6095a6253a5408fffb8a
|
3 |
+
size 249241
|
v-corpus-zh/Qruppo/拔作岛/拔作岛a/tmp_nukitashi.py
ADDED
@@ -0,0 +1,317 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
import re
|
4 |
+
import unicodedata
|
5 |
+
from opencc import OpenCC
|
6 |
+
|
7 |
+
|
8 |
+
def full2half(input_str):
|
9 |
+
return ''.join([unicodedata.normalize('NFKC', char) for char in input_str])
|
10 |
+
|
11 |
+
|
12 |
+
cc = OpenCC('t2s') # 't2s'表示繁体转简体
|
13 |
+
|
14 |
+
|
15 |
+
def clearT(s):
|
16 |
+
s = cc.convert(full2half(s))
|
17 |
+
return s.lstrip('n').strip().strip(r'\n').replace('\n', '\\n')
|
18 |
+
|
19 |
+
|
20 |
+
custom_sort_key_re = re.compile('([0-9]+)')
|
21 |
+
|
22 |
+
|
23 |
+
def custom_sort_key(s):
|
24 |
+
# 将字符串中的数字部分转换为整数,然后进行排序
|
25 |
+
return [int(x) if x.isdigit() else x for x in custom_sort_key_re.split(s)]
|
26 |
+
|
27 |
+
|
28 |
+
def get_all_files_in_directory(directory, ext=''):
|
29 |
+
all_files = []
|
30 |
+
for root, dirs, files in os.walk(directory):
|
31 |
+
for file in files:
|
32 |
+
if file.endswith(ext):
|
33 |
+
file_path = os.path.join(root, file)
|
34 |
+
all_files.append(file_path)
|
35 |
+
return sorted(all_files, key=lambda x: custom_sort_key(x))
|
36 |
+
|
37 |
+
|
38 |
+
a = get_all_files_in_directory(r'E:\tmp\Nukitashi\cn', ext='.json')
|
39 |
+
|
40 |
+
_n = {
|
41 |
+
"旁白": "旁白",
|
42 |
+
"淳之介": "淳之介",
|
43 |
+
"? ? ?": "?",
|
44 |
+
"船内广播": "广播",
|
45 |
+
"麻沙音": "麻沙音",
|
46 |
+
"A女": "A女",
|
47 |
+
"B女": "B女",
|
48 |
+
"C女": "C女",
|
49 |
+
"水无瀬老师": "水无瀬老师",
|
50 |
+
"话不多的男学生": "话不多的男学生",
|
51 |
+
"成熟的女学生": "成熟的女学生",
|
52 |
+
"开朗有精神的女学生": "开朗有精神的女学生",
|
53 |
+
"好像人很好的男学生": "好像人很好的男学生",
|
54 |
+
"运动会系男学生": "运动会系男学生",
|
55 |
+
"兰": "兰",
|
56 |
+
"女学生B": "女学生B",
|
57 |
+
"女学生A": "女学生A",
|
58 |
+
"女学生C": "女学生C",
|
59 |
+
"消极的女学生": "消极的女学生",
|
60 |
+
"女学生D": "女学生D",
|
61 |
+
"女学生E": "女学生E",
|
62 |
+
"女学生F": "女学生F",
|
63 |
+
"SHO警卫A": "SHO警卫A",
|
64 |
+
"SHO警卫B": "SHO警卫B",
|
65 |
+
"SHO警卫C": "SHO警卫C",
|
66 |
+
"SHO警卫D": "SHO警卫D",
|
67 |
+
"隔壁人妻": "隔壁人妻",
|
68 |
+
"FS女学生A": "FS女学生A",
|
69 |
+
"广播": "广播",
|
70 |
+
"嘻哈女子": "嘻哈女子",
|
71 |
+
"芭蕉系女子": "芭蕉系女子",
|
72 |
+
"男学生A": "男学生A",
|
73 |
+
"男学生B": "男学生B",
|
74 |
+
"男学生C": "男学生C",
|
75 |
+
"桐香": "桐香",
|
76 |
+
"奈奈濑": "奈奈濑",
|
77 |
+
"礼": "礼",
|
78 |
+
"主播茅津野": "主播茅津野",
|
79 |
+
"电视声": "电视声",
|
80 |
+
"男学生D": "男学生D",
|
81 |
+
"光姬": "光姬",
|
82 |
+
"大小姐女子": "大小姐女子",
|
83 |
+
"FS男学生A": "FS男学生A",
|
84 |
+
"B男": "B男",
|
85 |
+
"FS女学生B": "FS女学生B",
|
86 |
+
"奈奈濑&麻沙音": "奈奈濑&麻沙音",
|
87 |
+
"淳之介&麻沙音": "淳之介&麻沙音",
|
88 |
+
"MIZUHIKI_A": "MIZUHIKI_A", # 某个网页的昵称
|
89 |
+
"FS第二中队队长": "FS第二中队队长",
|
90 |
+
"FS女学生C": "FS女学生C",
|
91 |
+
"雏见": "雏见",
|
92 |
+
"雏见妈妈": "雏见妈妈",
|
93 |
+
"A男": "A男",
|
94 |
+
"D女": "D女",
|
95 |
+
"老师": "老师",
|
96 |
+
"Hamedori君": "Hamedori君", # 某个吉祥物
|
97 |
+
"导游": "导游",
|
98 |
+
"C男": "C男",
|
99 |
+
"雏见的祖父": "雏见的祖父",
|
100 |
+
"雏见的祖母": "雏见的祖母",
|
101 |
+
"SHO警卫E": "SHO警卫E",
|
102 |
+
"SHO警卫F": "SHO警卫F",
|
103 |
+
"SHO警卫G": "SHO警卫G",
|
104 |
+
"SHO警卫H": "SHO警卫H",
|
105 |
+
"PC画面": "PC画面",
|
106 |
+
"呻吟蝉女子": "呻吟蝉女子",
|
107 |
+
"射了射了精子男": "射了射了精子男",
|
108 |
+
"美岬": "美岬",
|
109 |
+
"郁子": "郁子",
|
110 |
+
"淳之介&美岬&雏见": "淳之介&美岬&雏见",
|
111 |
+
"傲娇女子": "傲娇女子",
|
112 |
+
"中二病男子": "中二病男子",
|
113 |
+
"口塞球": "口塞球",
|
114 |
+
"FS女学生D": "FS女学生D",
|
115 |
+
"FS女学生E": "FS女学生E",
|
116 |
+
"FS女学生G": "FS女学生G",
|
117 |
+
"FS女学生H": "FS女学生H",
|
118 |
+
"FS女学生I": "FS女学生I",
|
119 |
+
"FS女学生J": "FS女学生J",
|
120 |
+
"FS女学生K": "FS女学生K",
|
121 |
+
"福利社的阿姨": "福利社的阿姨",
|
122 |
+
"凛": "凛",
|
123 |
+
"Orgast": "Orgast",
|
124 |
+
"花丸姐妹": "花丸姐妹",
|
125 |
+
"古文老师": "古文老师",
|
126 |
+
"黑社会A": "黑社会A",
|
127 |
+
"黑社会B": "黑社会B",
|
128 |
+
"黑社会C": "黑社会C",
|
129 |
+
"文乃": "文乃",
|
130 |
+
"FS女学生F": "FS女学生F",
|
131 |
+
"拍贴机": "拍贴机",
|
132 |
+
"人品差的男学生": "人品差的男学生",
|
133 |
+
"最喜欢针筒的女医": "最喜欢针筒的女医",
|
134 |
+
"校内广播": "校内广播",
|
135 |
+
"穴之菊公主": "穴之菊公主",
|
136 |
+
"对政治有独到之见的女子": "对政治有独到之见的女子",
|
137 |
+
"不了解情势的女子": "不了解情势的女子",
|
138 |
+
"全员": "全员",
|
139 |
+
"男孩子A": "男孩子A",
|
140 |
+
"A女孩": "A女孩",
|
141 |
+
"B女孩": "B女孩",
|
142 |
+
"C女孩": "C女孩",
|
143 |
+
"D女孩": "D女孩",
|
144 |
+
"D男": "D男",
|
145 |
+
"E男": "E男",
|
146 |
+
"SHO警卫I": "SHO警卫I",
|
147 |
+
"SHO警卫K": "SHO警卫K",
|
148 |
+
"SHO警卫M": "SHO警卫M",
|
149 |
+
"SHO警卫N": "SHO警卫N",
|
150 |
+
"SHO特殊战斗部队长": "SHO特殊战斗部队长",
|
151 |
+
"SHO警卫O": "SHO警卫O",
|
152 |
+
"像家里蹲的女孩子": "像家里蹲的女孩子",
|
153 |
+
"店员": "店员",
|
154 |
+
"警卫": "警卫",
|
155 |
+
"装酷的一年级男子": "装酷的一年级男子",
|
156 |
+
"女孩子": "女孩子",
|
157 |
+
"有希": "有希",
|
158 |
+
"淳之介&雏见": "淳之介&雏见",
|
159 |
+
"女训练生A": "女训练生A",
|
160 |
+
"男训练生A": "男训练生A",
|
161 |
+
"舒伯特": "舒伯特",
|
162 |
+
"马屁精": "马屁精",
|
163 |
+
"丝丝子": "丝丝子",
|
164 |
+
"冲浪者": "冲浪者",
|
165 |
+
"妖屌村正前辈": "妖屌村正前辈",
|
166 |
+
"E女": "E女",
|
167 |
+
"鹦鹉": "鹦鹉",
|
168 |
+
"自以为是的女学生": "自以为是的女学生",
|
169 |
+
"狂欢少女": "狂欢少女",
|
170 |
+
"像猫的女学生": "像猫的女学生",
|
171 |
+
"鸽子": "鸽子",
|
172 |
+
"仁浦": "仁浦",
|
173 |
+
"SHO干部": "SHO干部",
|
174 |
+
"雏见&淳之介": "雏见&淳之介",
|
175 |
+
"黑社会D": "黑社会D",
|
176 |
+
"奈奈濑&美岬": "奈奈濑&美岬",
|
177 |
+
"黑社会E": "黑社会E",
|
178 |
+
"手嶋": "手嶋",
|
179 |
+
"雏见&礼": "雏见&礼",
|
180 |
+
"淳之介&礼": "淳之介&礼",
|
181 |
+
"大小姐学生": "大小姐学生",
|
182 |
+
"淳之介&美岬": "淳之介&美岬",
|
183 |
+
"辣妹女学生A": "辣妹女学生A",
|
184 |
+
"唯子": "唯子",
|
185 |
+
"入园者A": "入园者A",
|
186 |
+
"入园者B": "入园者B",
|
187 |
+
"入园者E": "入园者E",
|
188 |
+
"Hamedori君美岬": "Hamedori君美岬",
|
189 |
+
"入园者F": "入园者F",
|
190 |
+
"变态少女": "变态少女",
|
191 |
+
"很会拍马屁的女学生": "很会拍马屁的女学生",
|
192 |
+
"男学生E": "男学生E",
|
193 |
+
"像猫的女孩子": "像猫的女孩子",
|
194 |
+
"SHO警卫": "SHO警卫",
|
195 |
+
"分析型男子": "分析型男子",
|
196 |
+
"语尾独特的女学生": "语尾独特的女学生",
|
197 |
+
"好像很有坚持的男子": "好像很有坚持的男子",
|
198 |
+
"绝对是人妻的大姐姐": "绝对是人妻的大姐姐",
|
199 |
+
"落伍男子A": "落伍男子A",
|
200 |
+
"落伍男子B": "落伍男子B",
|
201 |
+
"喜欢大叔的女子": "喜欢大叔的女子",
|
202 |
+
"混蛋处男": "混蛋处男",
|
203 |
+
"破处混蛋处男": "破处混蛋处男",
|
204 |
+
"轻浮男": "轻浮男",
|
205 |
+
"奈奈濑&雏见": "奈奈濑&雏见",
|
206 |
+
"花丸妹妹": "花丸妹妹",
|
207 |
+
"屁穴刑警": "屁穴刑警",
|
208 |
+
"FS男学生B": "FS男学生B",
|
209 |
+
"FS男学生C": "FS男学生C",
|
210 |
+
"FS男学生D": "FS男学生D",
|
211 |
+
"FS女学生M": "FS女学生M",
|
212 |
+
"FS女学生N": "FS女学生N",
|
213 |
+
"FS女学生P": "FS女学生P",
|
214 |
+
"美岬&麻沙音": "美岬&麻沙音",
|
215 |
+
"健藏": "健藏",
|
216 |
+
"过激派女子": "过激派女子",
|
217 |
+
"深度考察的女子": "深度考察的女子",
|
218 |
+
"总是笑脸的女性": "总是笑脸的女性",
|
219 |
+
"总是阿黑颜的女性": "总是阿黑颜的女性",
|
220 |
+
"辣妹前辈": "辣妹前辈",
|
221 |
+
"面带微笑的女性": "面带微笑的女性",
|
222 |
+
"兴致勃勃的女学生": "兴致勃勃的女学生",
|
223 |
+
"微笑美岬": "微笑美岬",
|
224 |
+
"看似纯真的美岬": "看似纯真的美岬",
|
225 |
+
"辣妹美岬前辈": "辣妹美岬前辈",
|
226 |
+
"语尾独特的美岬": "语尾独特的美岬",
|
227 |
+
"迟到美岬": "迟到美岬",
|
228 |
+
"FS美岬A": "FS美岬A",
|
229 |
+
"FS美岬B": "FS美岬B",
|
230 |
+
"FS美岬C": "FS美岬C",
|
231 |
+
"FS美岬D": "FS美岬D",
|
232 |
+
"FS美岬Z": "FS美岬Z",
|
233 |
+
"猫美岬": "猫美岬",
|
234 |
+
"傲娇美岬": "傲娇美岬",
|
235 |
+
"大小姐美岬": "大小姐美岬",
|
236 |
+
"壁尻美岬": "壁尻美岬",
|
237 |
+
"雏见&郁子": "雏见&郁子",
|
238 |
+
"炮手美岬A": "炮手美岬A",
|
239 |
+
"把风美岬A": "把风美岬A",
|
240 |
+
"把风美岬B": "把风美岬B",
|
241 |
+
"SHO美岬A": "SHO美岬A",
|
242 |
+
"SHO美岬B": "SHO美岬B",
|
243 |
+
"SHO美岬C&D": "SHO美岬C&D",
|
244 |
+
"SHO美岬F": "SHO美岬F",
|
245 |
+
"狙击手美岬A": "狙击手美岬A",
|
246 |
+
"狙击手美岬B": "狙击手美岬B",
|
247 |
+
"黑社会美岬A": "黑社会美岬A",
|
248 |
+
"呛声美岬": "呛声美岬",
|
249 |
+
"傀儡美岬A": "傀儡美岬A",
|
250 |
+
"傀儡美岬B": "傀儡美岬B",
|
251 |
+
"傀儡美岬C": "傀儡美岬C",
|
252 |
+
"傀儡美岬D": "傀儡美岬D",
|
253 |
+
"吹子": "吹子",
|
254 |
+
"美岬&健藏": "美岬&健藏",
|
255 |
+
"老人A": "老人A",
|
256 |
+
"老人B": "老人B",
|
257 |
+
"空早泄太郎": "空早泄太郎",
|
258 |
+
"小孩A": "小孩A",
|
259 |
+
"防人老人": "防人老人",
|
260 |
+
"主播A": "主播A",
|
261 |
+
"主播B": "主播B",
|
262 |
+
"警备兵A": "警备兵A",
|
263 |
+
"警备兵B": "警备兵B",
|
264 |
+
"警备兵C": "警备兵C",
|
265 |
+
"宫司": "宫司",
|
266 |
+
"母亲": "母亲",
|
267 |
+
"爱洞姐妹1号": "爱洞姐妹1号",
|
268 |
+
"爱洞姐妹2号": "爱洞姐妹2号",
|
269 |
+
"警备兵D": "警备兵D",
|
270 |
+
"警备兵": "警备兵",
|
271 |
+
"警备兵E": "警备兵E",
|
272 |
+
"警备兵F": "警备兵F",
|
273 |
+
"警备兵G": "警备兵G",
|
274 |
+
"警备兵H": "警备兵H",
|
275 |
+
"警备兵I": "警备兵I",
|
276 |
+
"警备兵K": "警备兵K",
|
277 |
+
"警备兵L": "警备兵L",
|
278 |
+
"警备兵M": "警备兵M",
|
279 |
+
"精锐警备兵A": "精锐警备兵A",
|
280 |
+
"精锐警备兵B": "精锐警备兵B",
|
281 |
+
"精锐警备兵C": "精锐警备兵C",
|
282 |
+
"精锐警备兵D": "精锐警备兵D",
|
283 |
+
"精锐警备兵E": "精锐警备兵E",
|
284 |
+
"精锐警备兵队长": "精锐警备兵队长",
|
285 |
+
"精锐警备兵F": "精锐警备兵F",
|
286 |
+
"精锐警备兵G": "精锐警备兵G",
|
287 |
+
"精锐警备兵H": "精锐警备兵H"
|
288 |
+
}
|
289 |
+
|
290 |
+
b = r'D:\datasets\tmp'
|
291 |
+
sc = {}
|
292 |
+
|
293 |
+
for path in a:
|
294 |
+
tmp = path.split('_')
|
295 |
+
name = tmp[-2]
|
296 |
+
if name == '16': # 懒得处理了,特殊写一下
|
297 |
+
name = 'C'
|
298 |
+
if name not in sc:
|
299 |
+
sc[name] = []
|
300 |
+
print(name)
|
301 |
+
with open(path, 'r', encoding='utf-8') as json_file:
|
302 |
+
data = json.load(json_file)
|
303 |
+
|
304 |
+
for texts in data:
|
305 |
+
n = texts.get('name', '旁白')
|
306 |
+
# _n[n] = clearT(n)
|
307 |
+
n = _n[n]
|
308 |
+
d = clearT(texts['message'])
|
309 |
+
if d:
|
310 |
+
sc[name].append(n + ':' + d)
|
311 |
+
pass
|
312 |
+
|
313 |
+
for k, v in sc.items():
|
314 |
+
with open(b + f'\\{k}.txt', 'w', encoding='utf-8') as f:
|
315 |
+
f.write('\n'.join(v))
|
316 |
+
|
317 |
+
tmp = json.dumps(_n, ensure_ascii=False, indent=2)
|