textrank_candidates_all {textrank} | R Documentation |
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_sentences
algorithm.
See Also
Examples
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)
[Package textrank version 0.3.1 Index]