hamtaa-texttools 1.1.20__py3-none-any.whl → 1.1.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/METADATA +8 -27
- hamtaa_texttools-1.1.21.dist-info/RECORD +32 -0
- texttools/batch/batch_config.py +14 -1
- texttools/batch/batch_runner.py +1 -1
- texttools/internals/async_operator.py +45 -79
- texttools/internals/models.py +74 -105
- texttools/internals/operator_utils.py +2 -26
- texttools/internals/prompt_loader.py +3 -20
- texttools/internals/sync_operator.py +44 -78
- texttools/prompts/README.md +2 -2
- texttools/prompts/categorize.yaml +35 -77
- texttools/prompts/check_fact.yaml +2 -2
- texttools/prompts/extract_entities.yaml +2 -2
- texttools/prompts/extract_keywords.yaml +6 -6
- texttools/prompts/is_question.yaml +2 -2
- texttools/prompts/merge_questions.yaml +4 -4
- texttools/prompts/propositionize.yaml +2 -2
- texttools/prompts/rewrite.yaml +6 -6
- texttools/prompts/run_custom.yaml +1 -1
- texttools/prompts/subject_to_question.yaml +2 -2
- texttools/prompts/summarize.yaml +2 -2
- texttools/prompts/text_to_question.yaml +2 -2
- texttools/prompts/translate.yaml +2 -2
- texttools/tools/async_tools.py +393 -485
- texttools/tools/sync_tools.py +394 -486
- hamtaa_texttools-1.1.20.dist-info/RECORD +0 -33
- texttools/batch/internals/utils.py +0 -13
- {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/WHEEL +0 -0
- {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/licenses/LICENSE +0 -0
- {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/top_level.txt +0 -0
- /texttools/batch/{internals/batch_manager.py → batch_manager.py} +0 -0
texttools/prompts/translate.yaml
CHANGED
|
@@ -5,11 +5,11 @@ main_template: |
|
|
|
5
5
|
{{"result": "string"}}
|
|
6
6
|
Don't translate proper name, only transliterate them to {target_language}
|
|
7
7
|
Translate the following text to {target_language}:
|
|
8
|
-
{
|
|
8
|
+
{text}
|
|
9
9
|
|
|
10
10
|
analyze_template: |
|
|
11
11
|
Analyze the following text and identify important linguistic considerations for translation.
|
|
12
12
|
Point out any idioms, cultural references, or complex structures that need special attention.
|
|
13
13
|
Also, list all proper nouns that should not be translated. Write your analysis in the {target_language}.
|
|
14
|
-
{
|
|
14
|
+
{text}
|
|
15
15
|
|