system-prompts-and-models-o.../dealix/auto_client_acquisition/meeting_intelligence/transcript_parser.py
Sami Assiri b13cb389cc feat(dealix): sync full Dealix package to repo
- API routers, ACA modules, integrations (draft operators)
- Docs, landing pages, scripts (launch readiness, scorecard)
- Tests and CI workflow updates for Dealix

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-01 21:01:17 +03:00

19 lines
624 B
Python

"""Parse plain-text transcript lines into a short Arabic summary."""
from __future__ import annotations
import re
from typing import Any
def summarize_transcript_text(text: str) -> dict[str, Any]:
lines = [ln.strip() for ln in (text or "").splitlines() if ln.strip()]
bullets = lines[:5] if lines else ["لا يوجد نص كافٍ."]
word_count = len(re.findall(r"\w+", text or "", flags=re.UNICODE))
return {
"bullets_ar": bullets,
"word_count": word_count,
"demo": True,
"note_ar": "ملخص من نص خام — ربط Google Meet API لاحقاً مع OAuth.",
}