keywords: Tags text with likely keywords

Description Usage Arguments Value See Also Examples

Description

Given input text, returns a series of keywords and associated scores

Usage

1
keywords(text, version = 2, language = "english", ...)

Arguments

text

text for analysis

version

for api version

...

additional arguments to passed to request

Value

List with keyword score pairs

See Also

political, sentiment, text_tags

Examples

1
2
3
4
5
6
7
8
keywords <- keywords("Monday: Delightful with mostly sunny skies.
                   Highs in the low 70s.")
keywords
most.possible <- sort(unlist(keywords), decreasing = TRUE)[1:2]
cat(sprintf("Detected keyword %s with a score of %0.4f.\n",
            names(most.possible)[1], most.possible[1]))
cat(sprintf("Next possible is %s with a score %0.4f.",
            names(most.possible)[2], most.possible[2]))

IndicoDataSolutions/IndicoIo-R documentation built on May 7, 2019, 6:37 a.m.