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

Description Usage Arguments Details Value Author(s) Examples

View source: R/semantic.R

Description

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

Usage

1
semantic(text, app_key, app_id)

Arguments

text

The text is sent to API

app_key

Your app key

app_id

Your app ID

Details

semantic returns the result of semantic analysis

Value

the meaning of return code shown in this page <https://ai.qq.com/doc/nlpsem.shtml>

Author(s)

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

Examples

1
 semantic('<e4><bb><8a><e5><a4><a9><e5><92><8c><e6><98><8e><e5><a4><a9><e7><9a><84><e5><a4><a9><e6><b0><94><e6><80><8e><e6><a0><b7>', app_id = '1107152791', app_key =  'OpsMj8HXPmbu9SMd')

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