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)
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 #> #>