FLIP*FLOP INNOCENCE OVERCLOCK & RAMBLING OVERRUN @ 破琵琶生产公社 | SakuraLLM数据集
Browse files
v-corpus-zh/DiGination/FLIPFLOP/01.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5b4ff97ea8f527b9c6c2c3dc46daf7655c754571eaf28c878fa763a7b74acb3
|
3 |
+
size 229300
|
v-corpus-zh/DiGination/FLIPFLOP/02.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:228da6828f7fd0c603cab3e852d2a5841cb19360202756cbf634f04c8b81989e
|
3 |
+
size 232362
|
v-corpus-zh/DiGination/FLIPFLOP/FLIPFLOP_json.py
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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\FLIPFLOP\json_cn', ext='.json')
|
10 |
+
b = r'E:\galgame\FLIPFLOP\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 |
+
"Peace" : "Peace",
|
40 |
+
"一同" : "众人",
|
41 |
+
"同学A" : "同学A",
|
42 |
+
"同学B" : "同学B",
|
43 |
+
"同学C" : "同学C",
|
44 |
+
"同学D" : "同学D",
|
45 |
+
"建晴 // ??" : "?",
|
46 |
+
"建晴" : "建晴",
|
47 |
+
"侘助" : "侘助",
|
48 |
+
"伊织・玛露露" : "伊织&玛露露",
|
49 |
+
"教授" : "教授",
|
50 |
+
"同莉子小姐" : "同莉子小姐",
|
51 |
+
"イオ // 配信" : "配音",
|
52 |
+
"记者" : "记者",
|
53 |
+
"记者A" : "记者A",
|
54 |
+
"记者B" : "记者B",
|
55 |
+
"记者们" : "记者们",
|
56 |
+
"同班同学A" : "同班同学A",
|
57 |
+
"同班同学B" : "同班同学B",
|
58 |
+
"同班同学C" : "同班同学C",
|
59 |
+
"同班同学D" : "同班同学D",
|
60 |
+
"校长" : "校长",
|
61 |
+
"文緒" : "文绪",
|
62 |
+
"蘭 // 蝶" : "蝶",
|
63 |
+
"兰" : "兰",
|
64 |
+
"志伸&伊织" : "志伸&伊织",
|
65 |
+
"莉子&玛露露" : "莉子&玛露露",
|
66 |
+
"夷塚 // ??" : "?",
|
67 |
+
"志伸&真亚也" : "志伸&真亚也",
|
68 |
+
"志伸&兰" : "志伸&兰",
|
69 |
+
"同班同学们" : "同班同学们",
|
70 |
+
"社長" : "社长",
|
71 |
+
"研究員" : "研究员",
|
72 |
+
"大家" : "大家",
|
73 |
+
"交番" : "交番",
|
74 |
+
"建晴&真亜也" : "建晴&真亚也",
|
75 |
+
"侘助&小白" : "侘助&小白",
|
76 |
+
"路人A" : "路人A",
|
77 |
+
"Tink A" : "TinkA",
|
78 |
+
"Tink B" : "TinkB",
|
79 |
+
"路人B" : "路人B",
|
80 |
+
"英 // ??" : "?",
|
81 |
+
"黑衣人A" : "黑衣人A",
|
82 |
+
"夷塚 // 夷塚?" : "夷塚?",
|
83 |
+
"黑衣人B" : "黑衣人B",
|
84 |
+
"夷塚" : "夷塚",
|
85 |
+
"警察" : "警察",
|
86 |
+
"志伸・伊织" : "志伸&伊织",
|
87 |
+
"藍 // ??" : "?",
|
88 |
+
"蓝" : "蓝",
|
89 |
+
"巧可 // 巧可?" : "巧可?",
|
90 |
+
"巧可" : "巧可",
|
91 |
+
"志伸・真亚也" : "志伸&真亚也",
|
92 |
+
"寧々 // ??" : "?",
|
93 |
+
"寧々 // 委員長っぽい子" : "像班长的女生",
|
94 |
+
"宁宁" : "宁宁",
|
95 |
+
"英" : "英",
|
96 |
+
"负责人" : "负责人",
|
97 |
+
"兰的同学甲" : "兰的同学甲",
|
98 |
+
"兰的同学乙" : "兰的同学乙",
|
99 |
+
"Fairies" : "Fairies",
|
100 |
+
"转播员" : "转播员",
|
101 |
+
"13課職員" : "13課职员",
|
102 |
+
"文緒 // ??" : "?",
|
103 |
+
"主播" : "主播",
|
104 |
+
"社长" : "社长",
|
105 |
+
"主持人" : "主持人",
|
106 |
+
"参加者" : "参加者"
|
107 |
+
}
|
108 |
+
|
109 |
+
# =================
|
110 |
+
import json
|
111 |
+
|
112 |
+
for path in a:
|
113 |
+
name = path[path.rindex('\\') + 1:]
|
114 |
+
name = name[:2]
|
115 |
+
if name not in sc:
|
116 |
+
sc[name] = []
|
117 |
+
print(name)
|
118 |
+
# =================
|
119 |
+
|
120 |
+
with open(path, 'r', encoding='utf-8') as json_file:
|
121 |
+
data = json.load(json_file)
|
122 |
+
|
123 |
+
# =================
|
124 |
+
for line in data:
|
125 |
+
if 'name' in line:
|
126 |
+
n = line['name']
|
127 |
+
if n in _n:
|
128 |
+
n = _n[n]
|
129 |
+
else:
|
130 |
+
tmp = clearT(n).replace('・', '&')
|
131 |
+
_n[n] = tmp.split('//')[-1].replace(' ', '')
|
132 |
+
print(line, n)
|
133 |
+
else:
|
134 |
+
n = '旁白'
|
135 |
+
d = line['message']
|
136 |
+
if d:
|
137 |
+
sc[name].append(n + ':' + d)
|
138 |
+
|
139 |
+
# =================
|
140 |
+
|
141 |
+
for k, v in sc.items():
|
142 |
+
if v:
|
143 |
+
with open(b + f'\\{k}.txt', 'w', encoding='utf-8') as f:
|
144 |
+
f.write('\n'.join(v))
|
145 |
+
|
146 |
+
# =================
|
147 |
+
import json
|
148 |
+
tmp = json.dumps(_n, ensure_ascii=False, indent=4)
|