tuling_test.cpp
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <unistd.h>
5 #include "nlp/nlp_feedback.h"
6 
7 int main(int argc, char *argv[]) {
8  if (argc != 2) {
9  std::cout << "please enter the your question\n";
10  return -1;
11  }
12  TuLingRobot tuling;
13  tuling.setAskJson(argv[1]);
14  tuling.callTulingApi();
15  tuling.textFromJson();
16  return 0;
17 }
void setAskJson(const std::string ask_str)
设置图灵机器人对话请求参数.
std::string callTulingApi()
请求图灵机器人接口,获取回答.
int main(int argc, char *argv[])
Definition: tuling_test.cpp:7
语音识别结果处理与机器人交互模块. TODO: 还需要添加版权、版本等信息
std::string textFromJson()
从图灵机器人的完整json回答中解析出最终需要的text回答.


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54