sci_watch.summarizers.openai_summarizers module

class sci_watch.summarizers.openai_summarizers.GPTSummarizer(**kwargs)[source]

Bases: AbstractSummarizer

GPT models wrapper

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]

summarize(doc: Document) str[source]

Summarize one document Currently only Document.content is used

Parameters:

doc (Document) – Document to summarize

Returns:

Summarized document

Return type:

str