ros_categories: Rosette API categorizatioin service

Description Usage Arguments Examples

View source: R/categories.r

Description

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.

Usage

1
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

1
2
3
4
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)

hrbrmstr/rosette documentation built on May 17, 2019, 5:13 p.m.