Returns a category identified in the input. The possible categories are Tier 1 contextual categories defined in the QAG Taxonomy The response is the contextual categories identified in the input.

ros_categories(content, genre = NULL, language = NULL)

Arguments

content
either a URI or character vector of content to process
genre
document genre (optional)
language
Language: ISO 639-3 code (optional)

Examples

txt <- c('Sony Pictures is planning to shoot a good portion of ', 'the new "Ghostbusters" in Boston as well.') txt <- paste0(txt, collapse="") ros_categories(txt)
#> $categories #> label confidence #> 1 ARTS_AND_ENTERTAINMENT 0.06416648 #> #>