dmmiller612 / bert-extractive-summarizer

Easy to use extractive text summarization with BERT
MIT License
1.37k stars 307 forks source link

Don't load the SBERT model twice #138

Open Mokto opened 1 year ago

Mokto commented 1 year ago

Hi,

My use case is the following:

My issue is that I have to load the "same" model twice:

cv_model = SentenceTransformer(models_location)
summarizer_model = SBertSummarizer(models_location)

is there any way around it ?

Thanks.