summary.textrank_sentences: Extract the most important sentences which were identified...

Description Usage Arguments Value See Also

View source: R/textrank.R

Description

Extract the most important sentences which were identified by textrank_sentences

Usage

1
2
## S3 method for class 'textrank_sentences'
summary(object, n = 3, keep.sentence.order = FALSE, ...)

Arguments

object

an object of class textrank_sentences

n

integer indicating to extract only the top n sentences

keep.sentence.order

logical indicating to keep the sentence order as provided in the original data argument of the textrank_sentences function or to order it by the pagerank score. Defaults to FALSE indicating to order by pagerank score.

...

not used

Value

a character vector with the top n most important sentences which were identified by textrank_sentences

See Also

textrank_sentences


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