Learn R Programming

chatAI4R (version 0.3.6)

extractKeywords: extractKeywords

Description

Extract keywords from input text and output them in a comma-separated format.

Usage

extractKeywords(Model = "gpt-4o-mini", verbose = TRUE, SlowTone = FALSE)

Value

Prints the extracted keywords based on verbosity and tone speed settings.

Arguments

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.

Author

Satoshi Kume

Details

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.

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab