ros_entities: Rosette API entity extraction service

Description Usage Arguments Examples

View source: R/entities.r

Description

Returns each entity extracted from the input. The response is a list of extracted entities. Each entity includes an entityId (Wikidata QID or temporary ID), mention (entity text in the input), normalized text (complete form of the entity in the input), and the count (number of mentions of entity in the input).

Usage

1
ros_entities(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("Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was ",
         "spotted filming a cameo in Boston this<e2><80><a6> http://dlvr.it/BnsFfS")
txt <- paste0(txt, collapse="")
ros_entities(txt)

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