Jul-04-2022, 08:59 AM
I want to summarize our training documents by using BERT model.
I tried with the code below but the result looks not the best.
So, I want to add the customized dataset to drive the result like I want.
Could anyone help me?
I tried with the code below but the result looks not the best.
So, I want to add the customized dataset to drive the result like I want.
Could anyone help me?
pip install bert-extractive-summarizer pip install sacremoses from summarizer import Summarizer model = Summarizer() with open('readme.txt') as f: contents = f.read() string = model(contents)Thanks.