chatAI4pdf {chatAI4R} | R Documentation |
chatAI4pdf
Description
Reads a PDF file and summarizes its content using a specified Large Language Model (LLM).
Usage
chatAI4pdf(pdf_file_path, nch = 2000, verbose = TRUE)
Arguments
pdf_file_path |
The path to the PDF file to be summarized. Must be a string. |
nch |
The maximum number of characters for the summary. Default is 2000. |
verbose |
Logical flag to print the summary. Default is TRUE. |
Details
Summarize PDF Text via LLM
This function reads a PDF file and summarizes its content using a specified Large Language Model (LLM).
Value
A string containing the summarized text.
Author(s)
Satoshi Kume
Examples
## Not run:
#Baktash et al: GPT-4: A REVIEW ON ADVANCEMENTS AND OPPORTUNITIES IN NATURAL LANGUAGE PROCESSING
pdf_file_path <- "https://arxiv.org/pdf/2305.03195.pdf"
#Execute
summary_text <- chatAI4pdf(pdf_file_path)
## End(Not run)
[Package chatAI4R version 0.2.10 Index]