ros_sentences: Rosette API sentence determination service

Description Usage Arguments Examples

View source: R/sentences.r

Description

Divides the input into sentences. The response contains a list of sentences.

Usage

1
ros_sentences(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
5
6
7
8
9
lines <- c("This land is your land. This land is my land",
           "From California to the New York island;",
           "From the red wood forest to the Gulf Stream waters",
           "",  "This land was made for you and Me.",
           "", "As I was walking that ribbon of highway,",
           "I saw above me that endless skyway:",
           "I saw below me that golden valley:",
           "This land was made for you and me.")
ros_sentences(paste0(lines, collapse="\\n"))

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