I am very new to NLP. I'm trying to build simple text summarization model where it takes 1-2 important sentence from each subtitle in an article. For example, in the image I want take 1 sentence from "Urge to clear throat", "Viruses", and "Smoking" sections, and then combine them to make a summarization of the article. Can someone recommend me the best way to do that? Thank you in advance.
So far I only know how to make text summarization using BERT, but it didn't summarize from each sub-title.
You can use the
TextSummarizermodel from arcgis to generate summary for a given text. These models have been fine-tuned on summarization task.Sample code to instantiate the model object and summarize a given text.
100.00% [1/1 00:02<00:00]
Install arcgis and its deep learning dependencies before proceeding.