perf: lina ja translate (#13252)

Co-authored-by: feng <1304903146@qq.com>
pull/13255/head
fit2bot 2024-05-17 18:46:30 +08:00 committed by GitHub
parent f33cf07859
commit a15335cac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 962 additions and 1642 deletions

View File

@ -10,8 +10,8 @@ class BaseTranslateManager:
bulk_size = 15
SEPARATOR = "<SEP>"
LANG_MAPPER = {
# 'ja': 'Japanese',
'en': 'English',
'ja': 'Japanese',
# 'en': 'English',
}
def __init__(self, dir_path, oai_trans_instance):

File diff suppressed because it is too large Load Diff

View File

@ -47,6 +47,8 @@ class Translate:
return
for dir_name in dir_names:
if dir_name != 'lina':
continue
if dir_name.startswith('_'):
continue
if hasattr(self, f'{dir_name}_trans'):