dmmiller612 / bert-extractive-summarizer

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

how to save model as pkl.file for deploying #129

Open ranjith502 opened 2 years ago

ranjith502 commented 2 years ago

Thanks for your contributions

i want to save weights [bert-extractive-summarizer] as pkl file ,and i want to use it for prediction for my text summarization may i know ,how to save it

from summarizer import Summarizer

body = 'Text body that you want to summarize with BERT' body2 = 'Something else you want to summarize with BERT' model = Summarizer() model(body) model(body2)

now how to save model ??. any help on it

what are dependencies required for it deploy

Thanks and Regards