ABHINAY2025
add FastAPI ML service with semantic engine
00ff675
raw
history blame contribute delete
283 Bytes
import re
def split_into_candidates(text: str):
# Strong sentence boundaries only
sentences = re.split(r'[.!?]', text)
candidates = []
for s in sentences:
s = s.strip()
if len(s.split()) >= 3:
candidates.append(s)
return candidates