polytext 0.2.7__tar.gz → 0.2.7b0__tar.gz
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.
- {polytext-0.2.7 → polytext-0.2.7b0}/PKG-INFO +1 -1
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/prompts/transcription.py +4 -16
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext.egg-info/PKG-INFO +1 -1
- {polytext-0.2.7 → polytext-0.2.7b0}/setup.py +1 -1
- {polytext-0.2.7 → polytext-0.2.7b0}/LICENSE +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/README.md +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/audio_to_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/base.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/beautiful_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/document_ocr_to_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/document_ocr_to_text_azure_oai.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/gemini_quality_guards.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/html_to_md.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/md_to_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/ocr_to_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/ocr_to_text_azure_oai.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/pdf.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/text_to_md.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/converter/video_to_audio.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/exceptions/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/exceptions/base.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/generator/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/generator/pdf.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/audio.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/base.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/document.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/document_ocr.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/downloader/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/downloader/downloader.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/html.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/markdown.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/notebook.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/ocr.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/plain_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/video.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/xml_xbrl.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/youtube.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/loader/youtube_llm.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/processor/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/processor/audio_chunker.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/processor/text_merger.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/processor/transcript_chunker.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/prompts/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/prompts/beautiful_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/prompts/ocr.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/prompts/text_merging.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/prompts/text_to_md.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/utils/__init__.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext/utils/utils.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext.egg-info/SOURCES.txt +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext.egg-info/dependency_links.txt +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext.egg-info/not-zip-safe +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext.egg-info/requires.txt +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/polytext.egg-info/top_level.txt +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/pyproject.toml +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/setup.cfg +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_audio_chunker.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_audio_comparison_helpers.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_audio_transcription_model_migration.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_base_loader_error_mapping.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_beautiful_text_manual.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_compare_audio_models.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_compare_document_ocr_to_text_models.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_compare_ocr_to_text_models.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_compare_youtube_models.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_dowload_audio_from_youtube.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_dowload_audio_from_youtube_helpers.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_extracted_text_whitespace.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_gemini_quality_guards.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_audio_transcript_from_gcs.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_customized_pdf_from_markdown.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_document_ocr.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_document_ocr_azure_oai.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_document_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_document_text_from_gcs.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_ocr_from_image.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_text_from_markdown.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_get_video_transcript_from_gcs.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_library.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_markdown_loader_gzip.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_markitdown_html.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_notebook_loader.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_ocr_fallbacks.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_ocr_image_descriptions.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_pain_text.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_pdf_conversion_error.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_python_version_metadata.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_split_audio_with_llm.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_xml_xbrl_loader.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_youtube_gemini_minimal_check.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_youtube_llm_fallbacks.py +0 -0
- {polytext-0.2.7 → polytext-0.2.7b0}/tests/test_youtube_transcript.py +0 -0
|
@@ -45,20 +45,8 @@ You must follow these instructions EXACTLY:
|
|
|
45
45
|
* It is better to return less text than to hallucinate content.
|
|
46
46
|
* Never fabricate words from noisy phonetic patterns.
|
|
47
47
|
* Never infer semantic meaning from partial sounds.
|
|
48
|
-
|
|
49
|
-
6. **Markdown Formatting (Controlled):**
|
|
50
|
-
|
|
51
|
-
* Organize the transcript into paragraphs based on natural pauses in speech.
|
|
52
|
-
* Add Markdown subheadings (`##`, `###`) whenever the speaker clearly transitions to a new topic, question, task, subject, or discussion area.
|
|
53
|
-
* Prefer adding a heading when a topic shift is reasonably clear rather than omitting structure entirely.
|
|
54
|
-
* Headings must remain short, neutral, and closely grounded in the actual spoken content.
|
|
55
|
-
* Use simple factual labels derived from the transcript wording.
|
|
56
|
-
* Do NOT invent abstract summaries or interpretations.
|
|
57
|
-
* Do NOT add headings too frequently for minor conversational drift.
|
|
58
|
-
* Do NOT reorganize chronological order.
|
|
59
|
-
* Keep the transcript faithful to the original speech flow.
|
|
60
48
|
|
|
61
|
-
|
|
49
|
+
6. **Strict Prohibitions:**
|
|
62
50
|
|
|
63
51
|
* Do NOT summarize.
|
|
64
52
|
* Do NOT paraphrase.
|
|
@@ -73,14 +61,14 @@ You must follow these instructions EXACTLY:
|
|
|
73
61
|
* Do NOT generate markdown code fences.
|
|
74
62
|
* Do NOT output anything except the transcript itself.
|
|
75
63
|
|
|
76
|
-
|
|
64
|
+
7. **Anti-Repetition Guard (MANDATORY):**
|
|
77
65
|
|
|
78
66
|
* If the speaker intentionally repeats a short phrase, keep it only as spoken.
|
|
79
67
|
* If generated text accidentally repeats the same sentence or paragraph with no new content, remove duplicates.
|
|
80
68
|
* Never loop or restart earlier transcript sections.
|
|
81
69
|
* Before returning the final output, verify there are no duplicated blocks.
|
|
82
70
|
|
|
83
|
-
|
|
71
|
+
8. **Output Rules:**
|
|
84
72
|
|
|
85
73
|
* Output ONLY the transcript content.
|
|
86
74
|
* Start immediately with the transcript text.
|
|
@@ -94,7 +82,7 @@ You must follow these instructions EXACTLY:
|
|
|
94
82
|
* or any similar meta text.
|
|
95
83
|
* Do NOT wrap the response in code blocks.
|
|
96
84
|
|
|
97
|
-
|
|
85
|
+
9. **No Speech Case (MANDATORY):**
|
|
98
86
|
|
|
99
87
|
* If no clear human speech is detected anywhere in the entire audio, return EXACTLY:
|
|
100
88
|
no human speech detected
|
|
@@ -51,7 +51,7 @@ def get_requirements(*requirements_file):
|
|
|
51
51
|
|
|
52
52
|
setup(
|
|
53
53
|
name='polytext',
|
|
54
|
-
version='0.2.
|
|
54
|
+
version='0.2.7b',
|
|
55
55
|
url='https://github.com/docsity/polytext',
|
|
56
56
|
# download_url='https://github.com/pualien/py-polytext/archive/0.1.23.tar.gz',
|
|
57
57
|
license='MIT',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|