Spaces:
Sleeping
Sleeping
Eason Lu
commited on
Commit
•
bd773a2
1
Parent(s):
94b92ed
small fix
Browse filesFormer-commit-id: 3200fd06e40689d0380e4685ccecfe4f86288c72
- .gitignore +2 -1
- SRT.py +2 -2
- finetune_data/dict_enzh.csv +1 -0
.gitignore
CHANGED
@@ -6,4 +6,5 @@ test.py
|
|
6 |
test.srt
|
7 |
test.txt
|
8 |
log_*.csv
|
9 |
-
log.csv
|
|
|
|
6 |
test.srt
|
7 |
test.txt
|
8 |
log_*.csv
|
9 |
+
log.csv
|
10 |
+
/test
|
SRT.py
CHANGED
@@ -48,8 +48,8 @@ class SRT_segment(object):
|
|
48 |
self.translation = ""
|
49 |
|
50 |
def merge_seg(self, seg):
|
51 |
-
self.source_text += seg.source_text
|
52 |
-
self.translation += seg.translation
|
53 |
self.end_time_str = seg.end_time_str
|
54 |
self.end = seg.end
|
55 |
self.end_ms = seg.end_ms
|
|
|
48 |
self.translation = ""
|
49 |
|
50 |
def merge_seg(self, seg):
|
51 |
+
self.source_text += f' {seg.source_text}'
|
52 |
+
self.translation += f' {seg.translation}'
|
53 |
self.end_time_str = seg.end_time_str
|
54 |
self.end = seg.end
|
55 |
self.end_ms = seg.end_ms
|
finetune_data/dict_enzh.csv
CHANGED
@@ -118,6 +118,7 @@ queen,女王
|
|
118 |
banshee,女妖
|
119 |
hyperflight rotors,女妖提速
|
120 |
photon cannon,炮台
|
|
|
121 |
missile attacks,喷射攻击等级
|
122 |
assimilator,气矿
|
123 |
extractor,气矿
|
|
|
118 |
banshee,女妖
|
119 |
hyperflight rotors,女妖提速
|
120 |
photon cannon,炮台
|
121 |
+
cannon, 炮台
|
122 |
missile attacks,喷射攻击等级
|
123 |
assimilator,气矿
|
124 |
extractor,气矿
|