Giter Site home page Giter Site logo

xfqa_utils's Introduction

xfqa_utils

讯飞AIUI的python接口

运行测试环境: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) python3.5 gunicorn(可选)

具体使用可以参考 xfqa_test.py

可以执行web服务: sh run_alt.sh

打开网页 http://127.0.0.1:5040/query?q=北京今天天气怎么样 在Postman测试,体验更好!

===核心: 生成 libs/x64/libxfqa.so 和 xfqa.py _xfqa.cpython-35m-x86_64-linux-gnu.so 其中: libxfqa.so: 通过修改aiui_sample代码, 生成的so库 xfqa.py _xfqa.cpython-35m-x86_64-linux-gnu.so 是用swig和python distutils 生成的。

接口 xfqa.init(appid) xfqa.qa(text)

使用: 1 讯飞平台注册,下载开发包(lib) 2 替换appid和lib包 (两者对应的) 3 平台应用设置() 4 测试调用

xfqa_utils's People

Contributors

hongyinjie avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.