auth_NLU: Watson Natural Language Understanding API Authentication

Description Usage Arguments Value See Also Examples

View source: R/auth_NLU.R

Description

See the sign-up documentation for step by step instructions to secure your own username and password to enable you to authenticate the Watson NLU API. The auth_NLU function takes in a username and password as input to authenticate the users computer to use the Watson Natural Language Understanding API.

Usage

1
auth_NLU(username = NULL, password = NULL)

Arguments

username

Authentication IBM Watson Natural-Language-Understanding-3j username

password

Authentication IBM Watson Natural-Language-Understanding-3j password

Value

If authentication is successful, there is no return value. If unsuccessful, the function will ask the user to ensure username and password combination are correct.

See Also

keyword_sentiment, \link[watsonNLU]{keyword_relevance}, \link[watsonNLU]{keyword_emotions}, \link[watsonNLU]{text_categories}

Examples

1
2
3
4
5
6
credentials <- readRDS("../tests/testthat/credentials.rds")
username <- credentials$username
password <- credentials$password

# Authenticate using Watson NLU API Credentials
auth_NLU(username, password)

johannesharmse/watsonNLU documentation built on May 21, 2019, 12:04 p.m.