sci_watch.summarizers.summarizer module

class sci_watch.summarizers.summarizer.AbstractSummarizer[source]

Bases: ABC

Abstract class for documents (papers/blogs) summarization

abstract batch_summarize(docs: list[sci_watch.source_wrappers.document.Document]) list[str][source]

Summarize a list of documents

Parameters:

docs (list[Document]) – List of documents to summarize

Returns:

List of summarized documents

Return type:

list[str]

abstract summarize(doc: Document) str[source]

Summarize one document

Parameters:

doc (Document) – Document to summarize

Returns:

Summarized document

Return type:

str