GithubHelp home page GithubHelp logo

acluis's Introduction

ACLUIS——智能空调使用微软认知服务LUIS接口实现语义理解样例

项目说明

该项目是智能空调使用微软认知服务LUIS接口实现语义理解样例,帮助开发者理解在JAVA环境下使用LUIS API的调用。

部署说明

###Step1. 开发环境就绪

  • 本地开发环境Eclipse
  • 访问(http://luis.ai) ,将AirCond.json文件导入到LUIS Studio中
  • 可以根据需要调整LUIS的Intent/Entity等定义,训练后,选择publish 应用,确认发布
  • 发布后可以点击App Settings,如图

LUIS 应用Publish和App Settings

  • 可以查找到AppId与LUIS服务的订阅密钥并复制
  • 将oxfordvisitor.zip文件解压,导入Eclipse 工程空间,并将相关的jar下载导入: httpclient.jar/httpcoe.jar/commons-logging.jar/commons-codec.jar/json.jar
  • 打开src/main/java/requestBody.json文件,将AppId和订阅密钥修改成刚刚在LUIS应用中复制的
  • 根据环境修改buildpath的输出目录等

###Step2. 运行样例

  • 编译并运行工程,提示输入需要搜索的语料,输入语料如:明天北京天气怎么样,回车。如下图

语料输入

  • LUIS就会返回对该语料的理解,给出得分最高的意图,和对应的实例参数,以及完整的消息,如下图

语义输出

acluis's People

Contributors

litli 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.