0.1.3 • Published 9 years ago

luis-adapter v0.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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.

0.1.3

9 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.52

10 years ago

0.0.51

10 years ago

0.0.5

10 years ago

0.0.41

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago