Expand description
Extractive summarization based on sentence embedding similarity.
SemanticSummaryExtractor selects representative sentences from a
collection by scoring them against an optional query embedding (cosine
similarity) or, when no query is provided, by centrality (average cosine
similarity to every other sentence). A greedy selection loop with a
configurable diversity penalty prevents redundant picks.
Structsยง
- Extraction
Result - Result of an extraction run.
- Extractor
Scored Sentence - A sentence together with its embedding, score, and selection flag.
- Extractor
Summary Config - Controls the behaviour of
SemanticSummaryExtractor::extract. - Semantic
Summary Extractor - Extractive summariser driven by sentence embeddings.
- Summary
Extractor Stats - Simple stats counter.