getRelevant: Get Relevant Part from Text Document. Search for the first...

Description Usage Arguments Author(s) See Also

Description

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

Usage

1
2
  getRelevant(td, items, boundaries, matches.only = FALSE,
    fieldname = "matches")

Arguments

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

Author(s)

Mario Annau

See Also

tm_map



Search within the tm.plugin.sentiment package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.