emotion: R interface to tencent AI lab's emotion analysis

Description Usage Arguments Details Value Author(s) Examples

View source: R/emotion.R

Description

text can only be Chinese, this function performs poorly in English

Usage

1
emotion(text, app_key, app_id)

Arguments

text

The text is sent to API

app_key

Your app key

app_id

Your app ID

Details

emotion returns the results of emotion analysis

Value

positive = 1, neuter = 0, nagetive = -1

Author(s)

Ao Sun <https://ao-sun.github.io/>

Examples

1
 emotion('<e5><be><88><e5><bc><80><e5><bf><83>', app_id = '1107152791', app_key =  'OpsMj8HXPmbu9SMd')

suntiansheng/tencentAI documentation built on May 17, 2019, 12:52 p.m.