#include <nlp_feedback.h>
|
static size_t | http_data_writer (void *data, size_t size, size_t nmemb, void *content) |
|
图灵对话机器人模块
Definition at line 126 of file nlp_feedback.h.
std::string TuLingRobot::callTulingApi |
( |
| ) |
|
请求图灵机器人接口,获取回答.
- Returns
- std::string answer_json_ - 返回图灵机器人的完整json回答.
Definition at line 173 of file nlp_feedback.cpp.
size_t TuLingRobot::http_data_writer |
( |
void * |
data, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
content |
|
) |
| |
|
staticprivate |
void TuLingRobot::setAskJson |
( |
const std::string |
ask_str | ) |
|
std::string TuLingRobot::textFromJson |
( |
| ) |
|
从图灵机器人的完整json回答中解析出最终需要的text回答.
- Returns
- std::string answer_text_ - 返回需要的text回答.
Definition at line 208 of file nlp_feedback.cpp.
void TuLingRobot::uninitTuling |
( |
| ) |
|
std::string TuLingRobot::answer_json_ |
|
private |
std::string TuLingRobot::answer_text_ |
|
private |
std::string TuLingRobot::ask_json_ |
|
private |
std::string TuLingRobot::tuling_key_ = "58dcf416803a401a8b0770b9c551acef" |
|
private |
std::string TuLingRobot::tuling_url_ = "http://openapi.tuling123.com/openapi/api/v2" |
|
private |
The documentation for this class was generated from the following files: