Description Usage Arguments Author(s) See Also
Get Relevant Part from Text Document. Search for the first and last occurence of items in Text Document, get sentence boundaries and extract text. Function can be used in tm_map wrapper
1 2 | getRelevant(td, items, boundaries, matches.only = FALSE,
fieldname = "matches")
|
td |
TextDocument |
items |
character vector of items to be searched, eg. c("Microsoft", "MSFT") |
boundaries |
defined sentence boundaries in perl-regex syntax |
matches.only |
Return number of matches only |
matches |
only should only matches be annotated, defaults to FALSE |
fieldname |
name which should be used for meta field in Text Document to be annotated |
Mario Annau
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.