get_key_phrases: Key Phrase Analysis

Description Usage Arguments Value See Also Examples

Description

Analyzes a string of text and returns the key phrases (comma delimited). This function is a wrapper for the Key Phrase get request in Microsoft's Cognitive Services API.

Usage

1

Arguments

text

The text to be analyzed for key phrases.

language

The language of the text being analyzed. Must be en, es, fr, or pt.

Value

Returns the key phrases in the string, text. A data frame is returned containing the original text and the key phrases, comma delimited.

See Also

https://www.microsoft.com/cognitive-services

Examples

1
2
3
get_key_phrases("I am very angry")
get_key_phrases("je suis tres en colere", language = "fr")
get_key_phrases(c(sentence1, sentence2, sentence3))

dereklegenzoff/cognitiver documentation built on May 5, 2019, 3:49 a.m.