Description Usage Arguments Examples
Simple text-rank based summarizer.
1 2 3 4 5 6 7 | summarizer(text, ns = 2L)
## S3 method for class 'document'
summarizer(text, ns = 2L)
## S3 method for class 'corpus'
summarizer(text, ns = 2L)
|
text |
An object of class |
ns |
Number of sentences. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
init_textanalysis()
# build document
doc <- string_document(
paste("Assume this Short Document as an example.",
"Assume this as an example summarizer.",
"This has too few sentences."
)
)
summarizer(doc, ns = 2L)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.