Datasets:

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

冬之吻——琼田方寸意 与君初相知 @ 破琵琶生产公社

Browse files
v-corpus-zh/戏画/Kiss系列/初雪之吻/01.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:facc9f5968493441eebc7c06b168f5597137d08e386a29b88fddf54069e15ef5
3
+ size 174693
v-corpus-zh/戏画/Kiss系列/初雪之吻/02.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:675560bad9a98b915fe44cce184c0878a1fa8a3908ffe9d95264c1f2acf7d188
3
+ size 113076
v-corpus-zh/戏画/Kiss系列/初雪之吻/03.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bc4ce9b8fd4a8af13779b0b9e2de513e70d39edfdb5b57c84de5074d3e03609
3
+ size 116897
v-corpus-zh/戏画/Kiss系列/初雪之吻/04.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52549361c92d9be21277f5015d31f87978d4d54147df73ac4f5fc66e246258c2
3
+ size 116571
v-corpus-zh/戏画/Kiss系列/初雪之吻/05.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ecda8aa4dd4f493213de1b865ecf0080ebfedce9fbf7d452f1218f6dcfbd639
3
+ size 103930
v-corpus-zh/戏画/Kiss系列/初雪之吻/冬之吻_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\冬之吻\json_cn', ext='.json')
10
+ b = r'E:\galgame\冬之吻\text'
11
+
12
+ # =================
13
+
14
+ sc = {}
15
+ _n = {
16
+ "一誠" : "一诚", # 滝川一誠
17
+ "SMS" : "SMS",
18
+ "雪妃 // ???" : "?",
19
+ "雪妃" : "雪妃",
20
+ "柑奈 // ???" : "?",
21
+ "柑奈" : "柑奈",
22
+ "クラスメイト女子A" : "同班女生A",
23
+ "クラスメイト女子B" : "同班女生B",
24
+ "友人男子A" : "朋友男A",
25
+ "友人男子B" : "朋友男B",
26
+ "友人男子C" : "朋友男C",
27
+ "美冬 // ???" : "?",
28
+ "美冬" : "美冬",
29
+ "柊香 // ???" : "?",
30
+ "柊香" : "柊香",
31
+ "クラスメイトB" : "同班同学B",
32
+ "カメラマン" : "摄影师",
33
+ "美冬の兄" : "美冬的哥哥",
34
+ "男子学生A" : "男学生A",
35
+ "カフェ店員" : "咖啡店员",
36
+ "先生" : "老师",
37
+ "誠一" : "一诚",
38
+ "柑奈のお姉さん" : "柑奈的姐姐",
39
+ "ウォーターガンの係員" : "水枪员",
40
+ "大学生風の男性A" : "大学生模样的男A",
41
+ "大学生風の男性B" : "大学生模样的男B",
42
+ "大学生風の女性A" : "大学生模样的女A",
43
+ "係員" : "部门成员",
44
+ "ナンパ男1" : "搭讪男1",
45
+ "ナンパ男2" : "搭讪男2",
46
+ "男子学生" : "男学生",
47
+ "女子学生" : "女学生",
48
+ "柑奈のお姉さん // ???" : "?",
49
+ "町の人" : "镇上的人",
50
+ "店員" : "店员",
51
+ "くじ引き係員" : "抽签员",
52
+ "女性" : "女性",
53
+ "二人" : "二人",
54
+ "女性店員" : "女店员",
55
+ "占い師のおばさん" : "占卜师阿姨",
56
+ "女性スタッフ" : "女店员",
57
+ "クラスメイト女子" : "同班女生",
58
+ "セクシー女優" : "性感女演员",
59
+ "スタイリスト" : "造型师",
60
+ "照明のお兄さん" : "照明的哥哥", # 照明是谁?
61
+ "テレビ" : "电视",
62
+ "カフェ" : "咖啡馆",
63
+ "新副会長の女子" : "新女副会长",
64
+ "新監査役の女子" : "新女监事",
65
+ "友人男子Aの彼女" : "朋友男A的女朋友",
66
+ "友人男子Bの彼女" : "朋友男B的女朋友",
67
+ "友人男子Cの彼女" : "朋友男C的女朋友",
68
+ "動画の美冬" : "视频中的美冬",
69
+ "美冬の友達A" : "美冬的朋友A",
70
+ "美冬の友達B" : "美冬的朋友B",
71
+ "美冬の友達C" : "美冬的朋友C",
72
+ "スーツ姿の男性" : "西装男",
73
+ "大叔店员" : "大叔店员",
74
+ "テレビの音" : "电视声音",
75
+ "友人男子" : "朋友男",
76
+ "養護教諭" : "保护说明",
77
+ "校医" : "校医",
78
+ "医" : "医生",
79
+ "柑奈のお母さん" : "柑奈的妈妈",
80
+ "女子アナ" : "女主播",
81
+ "???" : "?",
82
+ "女子学生A" : "女学生A",
83
+ "女子学生B" : "女学生B",
84
+ "友人男子A・B" : "朋友男A&B",
85
+ "担任の先生" : "班主任",
86
+ "女子学生たち" : "女学生们",
87
+ "友人男子たち" : "朋友们",
88
+ "みんな" : "大家",
89
+ "女子学生A・B" : "女学生A&B",
90
+ "教員" : "老师",
91
+ "モブ" : "莫布",
92
+ "客" : "客人",
93
+ "男" : "男性",
94
+ "一誠の母" : "一诚的妈妈",
95
+ "同僚" : "同事",
96
+ "カラオケ店員" : "卡拉OK店员",
97
+ "アナベル" : "安娜贝尔",
98
+ "ランドのスタッフ" : "乐园的员工",
99
+ "子供" : "小孩子",
100
+ "若い男" : "年轻男",
101
+ "若い女" : "年轻女",
102
+ "犬" : "狗",
103
+ "飼い主" : "饲主"
104
+ }
105
+
106
+ # =================
107
+ import json
108
+ import re
109
+ reg_q = re.compile(r'[?\s]+')
110
+
111
+ for path in a:
112
+ name = path[path.rindex('\\') + 1:]
113
+ name = name.split('_', maxsplit=1)[0]
114
+ if name not in sc:
115
+ sc[name] = []
116
+ print(name)
117
+ # =================
118
+
119
+ with open(path, 'r', encoding='utf-8') as json_file:
120
+ data = json.load(json_file)
121
+
122
+ # =================
123
+ for line in data:
124
+ if 'name' in line:
125
+ n = line['name']
126
+ if n in _n:
127
+ n = _n[n]
128
+ else:
129
+ tmp = clearT(n).replace('・', '&')
130
+ tmp = reg_q.sub('?', tmp)
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)