Learn R Programming

textrank (version 0.1.0)

textrank_candidates_all: Get all combinations of sentences

Description

Get all combinations of sentences

Usage

textrank_candidates_all(x)

Arguments

x

a character vector of sentence identifiers

Value

a data.frame with 2 columns textrank_id_1 and textrank_id_2 listing up all possible combinations of x. The columns textrank_id_1 and textrank_id_2 contain identifiers of sentences given in sentence_id. This data.frame can be used as input in the textrank algorithm.

See Also

textrank

Examples

Run this code
# NOT RUN {
data(joboffer)
candidates <- textrank_candidates_all(unique(joboffer$sentence_id))
head(candidates, 50)
# }

Run the code above in your browser using DataLab