View source: R/extractKeywords.R
extractKeywords | R Documentation |
Extract keywords from input text and output them in a comma-separated format.
extractKeywords(Model = "gpt-4o-mini", verbose = TRUE, SlowTone = FALSE)
Model |
The OpenAI GPT model to use for text generation. Default is "gpt-4o-mini". |
verbose |
Logical flag to indicate whether to print the result. Default is TRUE. |
SlowTone |
Logical flag to indicate the speed of the output. Default is FALSE. |
Extract Keywords from Text
This function extracts keywords from the input text. It uses the OpenAI GPT model for text generation to assist in the extraction process. The function reads the input from the clipboard and outputs the extracted keywords in a comma-separated format.
Prints the extracted keywords based on verbosity and tone speed settings.
Satoshi Kume
## Not run:
# Option 1
# Select some text in RStudio and then run the rstudio addins
# Option 2
# Copy the text into your clipboard then execute
extractKeywords(Model = "gpt-4o-mini", verbose = TRUE, SlowTone = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.