svm_model / helper.py
TrBn17
app
e775b41
raw
history blame contribute delete
248 Bytes
from typing import Optional
# =========================
# Helpers
# =========================
def _combine(title: Optional[str], text: Optional[str]) -> str:
title = title or ""
text = text or ""
return f"{title} {text}".strip().lower()