课程: Hands-On Natural Language Processing

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Text summarization with sumy

Text summarization with sumy

- Now let's demonstrate the abstractive text summarization method, using pre-trained transformers from Huggingface. Transformers are a type of deep planning models that leverages attention mechanism when learning sequences like text. Will be using the same data set from the previous video, the snippet from the blog article by LinkedIn learning. First, we install transformers using PIP and we input pipeline from transformers that's what we will actually use as a pipeline for all that we want to do. Then we save a text into a variable called sample text and verify that the total number of characters 3,654. And the number of words is 606. With an instant sheet the summarization pipeline by simply giving it a name, as you can say from the outputs it's default to a distilled bat model. Now, let's say the performance of this model on our sample text, we have a minimal full summary of the simple text in about six lines. Now…

内容