Skip to content

schwamster/luis-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luis-adapter

npm version

this is an inoffcial luis api client that helps u to integrate luis into your application. to get you started with luis (Language Understanding Intelligent Service) visit the follwing page https://www.luis.ai/

##install

npm install luis-adapter

##usage var LuisAdapter = require("luis-adapter").LuisAdapter;

var options = {appId: "c413b2ef-382c-45bd-8ff0-f76d60e2a821", subscriptionKey: "#YOURSUBSCRIPTIONKEY#"};

var query = "set up an appointment at 2:00 pm tomorrow for 90 minutes called discuss budget";

var luisAdapter = new LuisAdapter(options);

  luisAdapter.query(query,
    function(data){
      console.log("Luis thinks this is your intent:" + luisAdapter.getIntent(data));
      console.log(data);
      },
    function(error){
      console.log(error);
      });

##Tests mocha is used for testing.

to run the test u need to set an environmentvariable named LuisSubscriptionKey to your own luis subscription.

then run npm run test

##Contributing & Building Everybody is welcome to contribute to this project. I will resolve pull requests as soon as possible. Source files are in Typescript in the src folder, so you will need to install typescript.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published