get_semantic_transparency | R Documentation |
Uses an LLM to obtain a semantic transparency rating for the given linguistic stimulus.
get_semantic_transparency(
stimulus,
model = "gpt-3.5-turbo",
api_key = "",
top_p = 1,
temp = 0
)
stimulus |
A character string representing the language material. |
model |
A character string specifying the LLM model (default "gpt-3.5-turbo"). |
api_key |
API key as a character string. |
top_p |
Numeric value (default 1). |
temp |
Numeric value (default 0). |
Default definition: "Semantic transparency is the degree to which the meaning of a compound or phrase can be inferred from its constituent parts."
An integer rating (1-7) indicating the semantic transparency.
## Not run:
sem_trans <- get_semantic_transparency("blackbird",
model = "gpt-3.5-turbo",
api_key = "your_api_key")
cat("Semantic Transparency Rating:", sem_trans, "\n")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.