get_api_pred_url: Get the prediction URL or the data from the 'pxtextmining...

View source: R/fct_api_pred.R

get_api_pred_urlR Documentation

Get the prediction URL or the data from the 'pxtextmining API'

Description

A function to call the 'pxtextmining' API

Usage

get_api_pred_url(data, api_key, target = "ms")

Arguments

data

Dataframe with column 'comment_id', 'comment_text' and 'question_type'

api_key

api key to access the api

target

to determine the type of prediction, the options are 'm' for multilabel, 's' for sentiment or 'ms' for both. default to 'ms'

Value

a dataframe or a url to get the data


CDU-data-science-team/experiencesdashboard documentation built on Nov. 30, 2023, 5:57 a.m.