v3.4.9
Browse files- demo/old_translation_settings.json +45 -0
- demo/translation_settings.json +2 -2
- modules/common/toolkit.py +1 -1
- requirements.txt +1 -1
demo/old_translation_settings.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base translation settings": {
|
3 |
+
"prompt_assembly_mode": 1,
|
4 |
+
"number_of_lines_per_batch": 48,
|
5 |
+
"sentence_fragmenter_mode": 2,
|
6 |
+
"je_check_mode": 2,
|
7 |
+
"number_of_malformed_batch_retries": 1,
|
8 |
+
"batch_retry_timeout": 700,
|
9 |
+
"number_of_concurrent_batches": 2
|
10 |
+
},
|
11 |
+
|
12 |
+
"openai settings": {
|
13 |
+
"openai_model": "gpt-4o",
|
14 |
+
"openai_system_message": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: γ indicates chapter changes.",
|
15 |
+
"openai_temperature": 0.3,
|
16 |
+
"openai_top_p": 1.0,
|
17 |
+
"openai_n": 1,
|
18 |
+
"openai_stream": false,
|
19 |
+
"openai_stop": null,
|
20 |
+
"openai_logit_bias": null,
|
21 |
+
"openai_max_tokens": null,
|
22 |
+
"openai_presence_penalty": 0.0,
|
23 |
+
"openai_frequency_penalty": 0.0
|
24 |
+
},
|
25 |
+
|
26 |
+
"gemini settings": {
|
27 |
+
"gemini_model": "gemini-1.5-pro-latest",
|
28 |
+
"gemini_prompt": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: γ indicates chapter changes.",
|
29 |
+
"gemini_temperature": 0.3,
|
30 |
+
"gemini_top_p": null,
|
31 |
+
"gemini_top_k": null,
|
32 |
+
"gemini_candidate_count": 1,
|
33 |
+
"gemini_stream": false,
|
34 |
+
"gemini_stop_sequences": null,
|
35 |
+
"gemini_max_output_tokens": null
|
36 |
+
},
|
37 |
+
|
38 |
+
"deepl settings":{
|
39 |
+
"deepl_context": "",
|
40 |
+
"deepl_split_sentences": "ALL",
|
41 |
+
"deepl_preserve_formatting": true,
|
42 |
+
"deepl_formality": "default"
|
43 |
+
}
|
44 |
+
|
45 |
+
}
|
demo/translation_settings.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
|
14 |
"openai settings": {
|
15 |
"openai_model": "gpt-4-turbo",
|
16 |
-
"openai_system_message": "As a Japanese to English translator, translate narration into simple past tense, everything else should remain in its original tense. Maintain original formatting, spacing, punctuation, and
|
17 |
"openai_temperature": 0.1,
|
18 |
"openai_top_p": 1.0,
|
19 |
"openai_n": 1,
|
@@ -27,7 +27,7 @@
|
|
27 |
|
28 |
"gemini settings": {
|
29 |
"gemini_model": "gemini-pro",
|
30 |
-
"gemini_prompt": "As a Japanese to English translator, translate narration into simple past tense, everything else should remain in its original tense. Maintain original formatting, spacing, punctuation, and
|
31 |
"gemini_temperature": 0.1,
|
32 |
"gemini_top_p": null,
|
33 |
"gemini_top_k": null,
|
|
|
13 |
|
14 |
"openai settings": {
|
15 |
"openai_model": "gpt-4-turbo",
|
16 |
+
"openai_system_message": "As a Japanese to English translator, translate narration into first person and simple past tense, everything else should remain in its original tense and point of view. Maintain original formatting, spacing, punctuation, paragraph structure, and overall style of text. Keep pre-translated terms and anticipate names not replaced. Calls and text messages should be enclosed in brackets. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note that γ indicates chapter changes. Do not use dialogue tags.",
|
17 |
"openai_temperature": 0.1,
|
18 |
"openai_top_p": 1.0,
|
19 |
"openai_n": 1,
|
|
|
27 |
|
28 |
"gemini settings": {
|
29 |
"gemini_model": "gemini-pro",
|
30 |
+
"gemini_prompt": "As a Japanese to English translator, translate narration into first person and simple past tense, everything else should remain in its original tense and point of view. Maintain original formatting, spacing, punctuation, paragraph structure, and overall style of text. Keep pre-translated terms and anticipate names not replaced. Calls and text messages should be enclosed in brackets. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note that γ indicates chapter changes. Do not use dialogue tags.",
|
31 |
"gemini_temperature": 0.1,
|
32 |
"gemini_top_p": null,
|
33 |
"gemini_top_k": null,
|
modules/common/toolkit.py
CHANGED
@@ -15,7 +15,7 @@ class Toolkit():
|
|
15 |
|
16 |
"""
|
17 |
|
18 |
-
CURRENT_VERSION = "v3.4.9
|
19 |
|
20 |
##-------------------start-of-clear_console()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
21 |
|
|
|
15 |
|
16 |
"""
|
17 |
|
18 |
+
CURRENT_VERSION = "v3.4.9"
|
19 |
|
20 |
##-------------------start-of-clear_console()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
21 |
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
backoff==2.2.1
|
2 |
gradio==4.20.0
|
3 |
kairyou==1.6.5
|
4 |
-
easytl==0.4.
|
5 |
ja_core_news_lg @ https://github.com/explosion/spacy-models/releases/download/ja_core_news_lg-3.7.0/ja_core_news_lg-3.7.0-py3-none-any.whl#sha256=f08eecb4d40523045c9478ce59a67564fd71edd215f32c076fa91dc1f05cc7fd
|
|
|
1 |
backoff==2.2.1
|
2 |
gradio==4.20.0
|
3 |
kairyou==1.6.5
|
4 |
+
easytl==0.4.4
|
5 |
ja_core_news_lg @ https://github.com/explosion/spacy-models/releases/download/ja_core_news_lg-3.7.0/ja_core_news_lg-3.7.0-py3-none-any.whl#sha256=f08eecb4d40523045c9478ce59a67564fd71edd215f32c076fa91dc1f05cc7fd
|