Spaces:
Sleeping
Sleeping
Eason Lu
commited on
Commit
·
a94e85f
1
Parent(s):
c1ba7b0
check phrase first
Browse filesFormer-commit-id: 1924ef8b0eae5f828bd5b85c8d251e9829e7ba69
- SRT.py +1 -1
- finetune_data/dict_enzh.csv +19 -9
- finetune_data/dict_freq.txt +5 -1
SRT.py
CHANGED
@@ -416,7 +416,7 @@ class SRT_script():
|
|
416 |
# result: ["this,", "is", "a", ["sentence"], ["this,", "is"], "is a", "a sentence"]
|
417 |
words = sentence.split()
|
418 |
res = []
|
419 |
-
for j in range(
|
420 |
res += [words[i:i+j] for i in range(len(words)-j+1)]
|
421 |
return res
|
422 |
|
|
|
416 |
# result: ["this,", "is", "a", ["sentence"], ["this,", "is"], "is a", "a sentence"]
|
417 |
words = sentence.split()
|
418 |
res = []
|
419 |
+
for j in range(n, 0, -1):
|
420 |
res += [words[i:i+j] for i in range(len(words)-j+1)]
|
421 |
return res
|
422 |
|
finetune_data/dict_enzh.csv
CHANGED
@@ -3,24 +3,25 @@ zerg,虫族
|
|
3 |
protoss,神族
|
4 |
terran,人族
|
5 |
engineering bay,工程站
|
6 |
-
forge
|
7 |
blink,闪现
|
8 |
evolution chamber,进化腔
|
9 |
-
cybernetics core
|
10 |
-
cybercore
|
11 |
enhanced shockwaves,EMP范围
|
12 |
gravitic boosters,ob速度
|
13 |
armory,军械库
|
14 |
robotics bay,机械研究所
|
15 |
twilight council,光影议会
|
|
|
16 |
fusion core,聚变芯体
|
17 |
fleet beacon,舰队航标
|
18 |
factory,重工厂
|
19 |
ghost academy,幽灵军校
|
20 |
infestation pit,感染深渊
|
21 |
-
robotics facility
|
22 |
robo,VR
|
23 |
-
stargate
|
24 |
starport,星港
|
25 |
archon,白球
|
26 |
smart servos,变形加速
|
@@ -31,6 +32,7 @@ zealot,叉叉
|
|
31 |
nydus network,虫洞
|
32 |
nydus worm,虫洞
|
33 |
hydralisk,刺蛇
|
|
|
34 |
grooved spines,刺蛇射程
|
35 |
muscular augments,刺蛇速度
|
36 |
hydralisk den,刺蛇塔
|
@@ -52,10 +54,10 @@ widow mine,地雷
|
|
52 |
ground carapace,地面单位甲壳等级
|
53 |
high templar,电兵
|
54 |
shield battery,电池
|
55 |
-
observer
|
56 |
baneling,毒爆
|
57 |
centrifugal hooks,毒爆速度
|
58 |
-
baneling nest
|
59 |
raven,渡鸦
|
60 |
combat shield,盾
|
61 |
shield,盾
|
@@ -131,7 +133,7 @@ missile attacks,喷射攻击等级
|
|
131 |
assimilator,气矿
|
132 |
extractor,气矿
|
133 |
refinery,气矿
|
134 |
-
roach
|
135 |
marine,枪兵
|
136 |
sensor tower,圈
|
137 |
infantry armor,人族防
|
@@ -199,4 +201,12 @@ supply,人口
|
|
199 |
war prism,棱镜
|
200 |
branda,女王
|
201 |
detector,反隐
|
202 |
-
natural,二矿
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
protoss,神族
|
4 |
terran,人族
|
5 |
engineering bay,工程站
|
6 |
+
forge,BF
|
7 |
blink,闪现
|
8 |
evolution chamber,进化腔
|
9 |
+
cybernetics core,BY
|
10 |
+
cybercore,BY
|
11 |
enhanced shockwaves,EMP范围
|
12 |
gravitic boosters,ob速度
|
13 |
armory,军械库
|
14 |
robotics bay,机械研究所
|
15 |
twilight council,光影议会
|
16 |
+
twilight,VC
|
17 |
fusion core,聚变芯体
|
18 |
fleet beacon,舰队航标
|
19 |
factory,重工厂
|
20 |
ghost academy,幽灵军校
|
21 |
infestation pit,感染深渊
|
22 |
+
robotics facility,VR
|
23 |
robo,VR
|
24 |
+
stargate,VS
|
25 |
starport,星港
|
26 |
archon,白球
|
27 |
smart servos,变形加速
|
|
|
32 |
nydus network,虫洞
|
33 |
nydus worm,虫洞
|
34 |
hydralisk,刺蛇
|
35 |
+
hydra,刺蛇
|
36 |
grooved spines,刺蛇射程
|
37 |
muscular augments,刺蛇速度
|
38 |
hydralisk den,刺蛇塔
|
|
|
54 |
ground carapace,地面单位甲壳等级
|
55 |
high templar,电兵
|
56 |
shield battery,电池
|
57 |
+
observer,OB
|
58 |
baneling,毒爆
|
59 |
centrifugal hooks,毒爆速度
|
60 |
+
baneling nest,毒爆虫巢
|
61 |
raven,渡鸦
|
62 |
combat shield,盾
|
63 |
shield,盾
|
|
|
133 |
assimilator,气矿
|
134 |
extractor,气矿
|
135 |
refinery,气矿
|
136 |
+
roach,蟑螂
|
137 |
marine,枪兵
|
138 |
sensor tower,圈
|
139 |
infantry armor,人族防
|
|
|
201 |
war prism,棱镜
|
202 |
branda,女王
|
203 |
detector,反隐
|
204 |
+
natural,二矿
|
205 |
+
pool first,速狗开
|
206 |
+
forge first,BF开
|
207 |
+
hatch first,先开矿
|
208 |
+
stasis ward,陷阱
|
209 |
+
gas geyser,气矿
|
210 |
+
kite,甩
|
211 |
+
mineral,矿
|
212 |
+
worker,农民
|
finetune_data/dict_freq.txt
CHANGED
@@ -191,4 +191,8 @@ cybercore
|
|
191 |
nest
|
192 |
follow-up
|
193 |
robo
|
194 |
-
APM
|
|
|
|
|
|
|
|
|
|
191 |
nest
|
192 |
follow-up
|
193 |
robo
|
194 |
+
APM
|
195 |
+
cheese
|
196 |
+
gas geyser
|
197 |
+
stasis ward
|
198 |
+
worm
|