Datasets:

Languages:
Chinese
Tags:
Not-For-All-Audiences
License:
Limour commited on
Commit
153bfd5
·
verified ·
1 Parent(s): ba6ef87

Little Busters @ Jack-Myth

Browse files
v-corpus-zh/Key/Little_Busters/0.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f67ee27e70426e2e589781a25875c2ed0aa5a92b71e7aee4846c14f8181a8b4
3
+ size 394675
v-corpus-zh/Key/Little_Busters/1.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:936c081204de5b1d62aabd71adc7827c6d54e383ac8eb720c3ef670c501f462e
3
+ size 74162
v-corpus-zh/Key/Little_Busters/2.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de6a5b7af0b45fdf5fe2e2b429a3de36ebd6a09a54a81006a3d47d48d6dcfa76
3
+ size 146746
v-corpus-zh/Key/Little_Busters/3.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0553dbb9d1c48066d1488a7140a4a21d049870bc83e8cadc2abb471df5c32ca6
3
+ size 202667
v-corpus-zh/Key/Little_Busters/4.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1068a98332fa1771e0c85ff585bece07a42ccc4f20274999d6aacff58c1077d0
3
+ size 149818
v-corpus-zh/Key/Little_Busters/5.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b21752c4a4720fc3112a1487bee072a38e327f0027f424de81be1a7c26d119b9
3
+ size 158654
v-corpus-zh/Key/Little_Busters/6.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1de65e6e1aa25317b41b1ff4b691a865b6c9c850c6c05a553b1bd7c5a318d25
3
+ size 368527
v-corpus-zh/Key/Little_Busters/7.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:761a841b90fe049b71b9b14102883e109c3c0371b5c5ac18f9710c455bd820c0
3
+ size 291102
v-corpus-zh/Key/Little_Busters/8.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41e836c9a93342e411aa02da9d6f75cbec68b56c4dffeddb6e78743ea42eef79
3
+ size 366664
v-corpus-zh/Key/Little_Busters/9.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ff45163b4bcfaebcc4ff738b1023add29f425f07dde253f837db4dad1794254
3
+ size 284857
v-corpus-zh/Key/Little_Busters/LBEE.py ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ sys.path.append('..')
3
+
4
+ from common import \
5
+ get_all_files_in_directory, \
6
+ clearT, simpleSplit, endsWithAny, startsWithAny, \
7
+ brackets_r, brackets
8
+ # https://huggingface.co/datasets/Limour/archvie/blob/main/v-corpus-zh/common.py
9
+
10
+ # =================
11
+
12
+ a = get_all_files_in_directory(r'F:\galgame\Little_Busters\LB_EX_Unicode', ext='.txt')
13
+ b = r'F:\galgame\Little_Busters\text'
14
+
15
+ # =================
16
+
17
+ sc = {}
18
+ _n = {
19
+ "声" : "声音",
20
+ "理树" : "理树",
21
+ "真人" : "真人",
22
+ "男生" : "男生",
23
+ "男生A" : "男生A",
24
+ "男生B" : "男生B",
25
+ "男生C" : "男生C",
26
+ "男子B" : "男子B",
27
+ "恭介" : "恭介",
28
+ "谦吾" : "谦吾",
29
+ "群众" : "群众",
30
+ "男声" : "男声",
31
+ "铃" : "铃",
32
+ "猫" : "猫",
33
+ "少年" : "少年",
34
+ "女生" : "女生",
35
+ "理树&真人" : "理树&真人",
36
+ "佐佐美" : "佐佐美",
37
+ "垒球部员" : "垒球部员",
38
+ "恭介恭介" : "恭介",
39
+ "真人谦吾" : "谦吾",
40
+ "三枝" : "三枝",
41
+ "教师" : "教师",
42
+ "女学生" : "女学生",
43
+ "神北" : "神北",
44
+ "铃铃" : "铃",
45
+ "男学生" : "男学生",
46
+ "风纪委员" : "风纪委员",
47
+ "风纪委员1" : "风纪委员1",
48
+ "杂务员" : "杂务员",
49
+ "学生A" : "学生A",
50
+ "学生B" : "学生B",
51
+ "来谷" : "来谷",
52
+ "风纪委员3" : "风纪委员3",
53
+ "风纪委员4" : "风纪委员4",
54
+ "理树三枝" : "三枝",
55
+ "风纪委员2" : "风纪委员2",
56
+ "?" : "?",
57
+ "库特" : "库特",
58
+ "围观的人" : "围观的人",
59
+ "围观的人们" : "围观的人们",
60
+ "大娘" : "大娘",
61
+ "小毬" : "小毬",
62
+ "西园" : "西园",
63
+ "真人真人" : "真人",
64
+ "宿管" : "宿管",
65
+ "叶留佳" : "叶留佳",
66
+ "学生" : "学生",
67
+ "??" : "?",
68
+ "大婶" : "大婶",
69
+ "男子" : "男子",
70
+ "相川" : "相川",
71
+ "老师" : "老师",
72
+ "先生" : "老师",
73
+ "女生徒" : "女学生",
74
+ "伊藤" : "伊藤",
75
+ "声音" : "声音",
76
+ "理树理树" : "理树",
77
+ "二木" : "二木",
78
+ "男子生徒" : "男学生",
79
+ "新闻" : "新闻",
80
+ "主持人" : "主持人",
81
+ "男子A" : "男子A",
82
+ "宿管阿姨" : "宿管阿姨",
83
+ "班主任" : "班主任",
84
+ "女老师" : "女老师",
85
+ "前辈" : "前辈",
86
+ "美鱼" : "美鱼",
87
+ "同学" : "同学",
88
+ "老人" : "老人",
89
+ "老爷" : "老爷",
90
+ "小次郎" : "小次郎",
91
+ "大姐" : "大姐",
92
+ "拓也" : "拓也",
93
+ "一同" : "一同",
94
+ "女子" : "女子",
95
+ "三年女子1" : "三年女生1",
96
+ "三年女子2" : "三年女生2",
97
+ "三年女子3" : "三年女生3",
98
+ "女生1" : "女生1",
99
+ "新闻节目" : "新闻",
100
+ "多鲁基" : "多鲁基",
101
+ "女生A" : "女生A",
102
+ "保健室的老师" : "保健室的老师",
103
+ "教室" : "教室",
104
+ "祖父" : "祖父",
105
+ "工作人员" : "工作人员",
106
+ "研究所人员" : "研究所人员",
107
+ "女性" : "女性",
108
+ "医务室的老师" : "医务室的老师",
109
+ "图书委员" : "图书委员",
110
+ "save 5理树" : "理树",
111
+ "女孩" : "女孩",
112
+ "女孩子" : "女孩",
113
+ "班上的女生" : "班上的女生",
114
+ "叶留佳的母亲" : "叶留佳的母亲",
115
+ "叶留佳的父亲" : "叶留佳的父亲",
116
+ "老婆" : "老婆",
117
+ "男人" : "男人",
118
+ "佳奈多" : "佳奈多",
119
+ "叶留佳叶留佳" : "叶留佳",
120
+ "杉" : "杉",
121
+ "高宫" : "高宫",
122
+ "胜沢" : "胜沢",
123
+ "店员" : "店员",
124
+ "二人" : "二人",
125
+ "三人" : "三人",
126
+ "天气预报" : "天气预报",
127
+ "来谷理树" : "来谷理树",
128
+ "小毬小毬" : "小毬",
129
+ "少女" : "少女",
130
+ "美鸟" : "美鸟",
131
+ "女生2" : "女生2",
132
+ "影" : "影",
133
+ "围观者A" : "围观者A",
134
+ "相川铃" : "相川铃",
135
+ "古式" : "古式",
136
+ "理树铃" : "铃",
137
+ "议员" : "议员",
138
+ "理事长" : "理事长",
139
+ "老奶" : "老奶",
140
+ "黑猫" : "黑猫",
141
+ "章鱼" : "章鱼",
142
+ "卡兹" : "卡兹",
143
+ "警官" : "警官",
144
+ "老爷爷A" : "老爷爷A",
145
+ "老爷爷B" : "老爷爷B",
146
+ "真人恭介" : "恭介",
147
+ "理树恭介" : "恭介",
148
+ "斯特勒鲁卡" : "斯特勒鲁卡",
149
+ "叫声" : "叫声",
150
+ "威尔卡" : "威尔卡",
151
+ "垒球部员A" : "垒球部员A",
152
+ "垒球部员B" : "垒球部员B",
153
+ "垒球部员C" : "垒球部员C",
154
+ "中村" : "中村",
155
+ "渡辺" : "渡辺",
156
+ "川越" : "川越",
157
+ "两人" : "两人",
158
+ "小黑" : "小黑",
159
+ "喵呜~铃" : "铃",
160
+ "来谷来谷" : "来谷",
161
+ "男生宿管" : "男生宿管",
162
+ "女生宿管" : "女生宿管",
163
+ "女子1" : "女子1",
164
+ "女子2" : "女子2",
165
+ "女子1" : "女子1",
166
+ "快递员" : "快递员",
167
+ "亲戚" : "亲戚",
168
+ "宫沢" : "宫沢",
169
+ "父" : "父亲",
170
+ "母" : "母亲",
171
+ "学生会委员" : "学生会委员",
172
+ "女子主将" : "女主将",
173
+ "男" : "男",
174
+ "大伙" : "大伙",
175
+ "朱鹭户" : "朱鹭户",
176
+ " 朱鹭户" : "朱鹭户",
177
+ "朱鷺戸" : "朱鹭户",
178
+ "朱鹭戸" : "朱鹭户",
179
+ "理树&朱鹭戸" : "理树&朱鹭户",
180
+ "沙耶" : "沙耶",
181
+ "时风" : "时风",
182
+ "老教师" : "老教师",
183
+ "父亲" : "父亲"
184
+ }
185
+
186
+ # =================
187
+
188
+ for path in a:
189
+ name: str = path[path.rindex('\\') + 1:]
190
+ name = name[0]
191
+ if name not in sc:
192
+ sc[name] = []
193
+ print(name)
194
+ # =================
195
+ try:
196
+ f = open(path, 'r', encoding='utf-16-le')
197
+ data = list(x.rstrip() for x in f.readlines())
198
+ except UnicodeDecodeError:
199
+ f = open(path, 'r', encoding='gbk')
200
+ data = list(x.rstrip() for x in f.readlines())
201
+ finally:
202
+ f.close()
203
+ # =================
204
+ data[0] = data[0].lstrip('\ufeff')
205
+ # print(data[0])
206
+ # print(data[0][0])
207
+ def _filter(x: str):
208
+ if not x:
209
+ return False
210
+ return True
211
+ data = list(filter(_filter, data))
212
+ # =================
213
+ n = ''
214
+ w_i = -1
215
+ while w_i < len(data) - 1:
216
+ w_i += 1
217
+ line: str = data[w_i]
218
+ # =================
219
+ tmp = endsWithAny(line, brackets_r)
220
+ if tmp and (brackets_r[tmp] in line):
221
+ n, d = simpleSplit(line, brackets_r[tmp], _shift=False)
222
+ if n in _n:
223
+ n = _n[n]
224
+ else:
225
+ n = "旁白"
226
+ d = line
227
+ else:
228
+ n = "旁白"
229
+ d = line
230
+
231
+ d = clearT(d)
232
+ if d:
233
+ sc[name].append(n + ':' + d)
234
+
235
+ # =================
236
+ for k, v in sc.items():
237
+ if v:
238
+ with open(b + f'\\{k}.txt', 'w', encoding='utf-8') as f:
239
+ f.write('\n'.join(v))
240
+ # =================
241
+ import json
242
+ tmp = json.dumps(_n, ensure_ascii=False, indent=4)