Gabriel commited on
Commit
45f7d73
1 Parent(s): c1887fc

Update text.py

Browse files
Files changed (1) hide show
  1. text.py +4 -2
text.py CHANGED
@@ -1,6 +1,8 @@
1
  sum_app_text_tab_1= """
2
  ## The Summarization Task
3
- The goal of text summarization is to extract or generate concise and accurate summaries of a given text document while maintaining key information found within the original text document. Text summarization methods can either be used as an extractive or abstractive model. An Extractive method does what it sounds like, it concatenates different important sentences or paragraphs without understanding the meaning of those parts. Extractive summarization does not create any new word phrases. For instance, if you presented a page of text to an extractive model, it would just act as a text “highlighter”. However, Abstractive summarization generates text in a fashion that tries to guess the meaning in a summarised way of the page of text it is presented. It would put words together in a meaningful way and add the most important fact found in the text.
 
 
4
  ![alt text](file/EX_VS_ABS.png)
5
 
6
  ## Abstractive vs Extractive
@@ -12,7 +14,7 @@ The underlying engines for the Abstractive part are transformer based model BART
12
 
13
  To see more in depth regarding the training go to model card: [Gabriel/bart-base-cnn-xsum-swe](https://huggingface.co/Gabriel/bart-base-cnn-xsum-swe).
14
  """
15
-
16
  sum_app_text_tab_2= """
17
 
18
  The core idea behind the training procedure is sequential adoption through transfer learning, i.e multiple phases for fine-tuning a pretrained model on different datasets. The figure below illustrates how the skill level of the model increases at each step:
 
1
  sum_app_text_tab_1= """
2
  ## The Summarization Task
3
+ The goal of text summarization is to extract or generate condense long documents into summaries, while maintaining key information found within the original text document. This is one of the most challenging NLP tasks as it requires a range of abilities, such as understanding long passages and generating coherent text that captures the main topics in a document. However, when done well, text summarization is a powerful tool that can speed up various business processes by relieving the burden of domain experts to read long documents in detail.
4
+
5
+ Text summarization methods can either be used as an extractive or abstractive model. An Extractive method does what it sounds like, it concatenates different important sentences or paragraphs without understanding the meaning of those parts. Extractive summarization does not create any new word phrases. For instance, if you presented a page of text to an extractive model, it would just act as a text “highlighter”. However, Abstractive summarization generates text in a fashion that tries to guess the meaning in a summarised way of the page of text it is presented. It would put words together in a meaningful way and add the most important fact found in the text.
6
  ![alt text](file/EX_VS_ABS.png)
7
 
8
  ## Abstractive vs Extractive
 
14
 
15
  To see more in depth regarding the training go to model card: [Gabriel/bart-base-cnn-xsum-swe](https://huggingface.co/Gabriel/bart-base-cnn-xsum-swe).
16
  """
17
+ ##
18
  sum_app_text_tab_2= """
19
 
20
  The core idea behind the training procedure is sequential adoption through transfer learning, i.e multiple phases for fine-tuning a pretrained model on different datasets. The figure below illustrates how the skill level of the model increases at each step: