textrank_candidates_all: Get all combinations of sentences

Description Usage Arguments Value See Also Examples

View source: R/textrank.R

Description

Get all combinations of sentences

Usage

1

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_sentences algorithm.

See Also

textrank_sentences

Examples

1
2
3
4
5
library(udpipe)
data(joboffer)
joboffer$textrank_id <- unique_identifier(joboffer, c("doc_id", "paragraph_id", "sentence_id"))
candidates <- textrank_candidates_all(unique(joboffer$textrank_id))
head(candidates, 50)

textrank documentation built on Oct. 23, 2020, 5:21 p.m.