Answers.Body: <p>I think it is a quite reasonable task.</p>
  <ul>
  <li>To extract text from a PDF there are <a href="https://stackoverflow.com/questions/34837707/how-to-extract-text-from-a-pdf-file">many libraries</a>.</li>
  <li>If you also have images or other plots could be transformed in an embedding using a detector followed by encoder (or any alternative solutions).</li>
  </ul>
  <p>I'd pass the text (could also be plain text, the model should infer the structure from the word sequence contained in each section, if present and given enough text) to a text summarization model, which would output the summarized sentence.</p>
  <p>Alternatively you should detect the text regions with a detector, then parse the text contained in each region and encode it, and successively pass it to the summarization model.
  There are many metrics to evaluate the performance, such as BLEU, METEOR, ROUGE ...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-05T21:45:58.730Z
Answers.LastActivityDate: 2023-05-05T21:45:58.730Z
Answers.UserDisplayName: Ciodar
Answers.Body: <p>In my opinion, I think Bing is best suited for this task, as you can open it in a sidebar so it will be able to read the pdf file. To add on, it is powered by GPT-4, which is basically the most powerful language model as of now, so this task is definitely achievable with the help of this tool.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-05T13:58:08.500Z
Answers.LastActivityDate: 2023-06-05T13:58:08.500Z
Answers.UserDisplayName: Russell
Body: <p>I'm given pdf documents containing complex information about a financial product and my task is to write a disclaimer: a two page document with a very precise structure explaining this financial product, the risks associated to it etc, infos that are present in the pdf but hard to understand for common people.
  Do you know if it would be possible for an AI to read this complex document and write the disclaimer ?
  More precisely, could it be able to extract information from documents whose content and layout change and write a comprehensive summary in a defined setting?</p>
  
Tags: <natural-language-processing><text-generation><text-summarization>
Title: Can you automatically write a text summarizing a finance document using AI models?
UserDisplayName: Arthur Gere
ThreadText: # Can you automatically write a text summarizing a finance document using AI models?
  
  (Asked by: username_0 on 2023-05-03)
  
  I'm given pdf documents containing complex information about a financial product and my task is to write a disclaimer: a two page document with a very precise structure explaining this financial product, the risks associated to it etc, infos that are present in the pdf but hard to understand for common people.
  Do you know if it would be possible for an AI to read this complex document and write the disclaimer ?
  More precisely, could it be able to extract information from documents whose content and layout change and write a comprehensive summary in a defined setting?
  
  **Tags:** natural-language-processing, text-generation, text-summarization
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2023-05-05. Score: 1
  
  I think it is a quite reasonable task.
  
  * To extract text from a PDF there are [many libraries](https://stackoverflow.com/questions/34837707/how-to-extract-text-from-a-pdf-file).
  * If you also have images or other plots could be transformed in an embedding using a detector followed by encoder (or any alternative solutions).
  
  I'd pass the text (could also be plain text, the model should infer the structure from the word sequence contained in each section, if present and given enough text) to a text summarization model, which would output the summarized sentence.
  
  Alternatively you should detect the text regions with a detector, then parse the text contained in each region and encode it, and successively pass it to the summarization model.
  There are many metrics to evaluate the performance, such as BLEU, METEOR, ROUGE ...
  
  
  ---
  
  ### Answer by username_2 on 2023-06-05. Score: 0
  
  In my opinion, I think Bing is best suited for this task, as you can open it in a sidebar so it will be able to read the pdf file. To add on, it is powered by GPT-4, which is basically the most powerful language model as of now, so this task is definitely achievable with the help of this tool.
  
  
  ---
  
  