14 lines
384 B
Python
14 lines
384 B
Python
# src/processor/summarizer.py
|
|
|
|
class Summarizer:
|
|
"""
|
|
Summarizes cleaned email text using spaCy, KeyBERT, or LLM (configurable).
|
|
"""
|
|
|
|
def __init__(self, method="spacy"):
|
|
self.method = method
|
|
# TODO: Load model(s) depending on config
|
|
|
|
def summarize(self, text):
|
|
# TODO: Return a short summary or key phrases
|
|
return "summary of email"
|