All Projects → kkdai → luis

kkdai / luis

Licence: MIT license
Microsoft Luis.ai API Golang package

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to luis

MaratonaBots
Códigos em Node.js da Maratona Bots
Stars: ✭ 29 (+0%)
Mutual labels:  luis, luis-ai
Botbuilder Samples
Welcome to the Bot Framework samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Bot Framework SDK!
Stars: ✭ 3,484 (+11913.79%)
Mutual labels:  luis, luis-ai
Watbot
An Android ChatBot powered by IBM Watson Services (Assistant V1, Text-to-Speech, and Speech-to-Text with Speaker Recognition) on IBM Cloud.
Stars: ✭ 64 (+120.69%)
Mutual labels:  intent
Bundler
🎁 Android Intent & Bundle extensions that insert and retrieve values elegantly.
Stars: ✭ 195 (+572.41%)
Mutual labels:  intent
Widgetexamples
A demo project showcasing different types of Widgets created with SwiftUI and WidgetKit.
Stars: ✭ 125 (+331.03%)
Mutual labels:  intent
Intent
A simple Flutter plugin to deal with Android Intents, written with ❤️
Stars: ✭ 79 (+172.41%)
Mutual labels:  intent
Android Cheat Sheet
Cheat Sheet for Android Interviews
Stars: ✭ 1,891 (+6420.69%)
Mutual labels:  intent
Potato Library
Easy to use Utility library for Android
Stars: ✭ 45 (+55.17%)
Mutual labels:  intent
Rnn For Joint Nlu
Pytorch implementation of "Attention-Based Recurrent Neural Network Models for Joint Intent Detection and Slot Filling" (https://arxiv.org/abs/1609.01454)
Stars: ✭ 176 (+506.9%)
Mutual labels:  intent
Padatious
A neural network intent parser
Stars: ✭ 124 (+327.59%)
Mutual labels:  intent
Callapp Lib
🔥call app from h5(H5唤起客户端 )
Stars: ✭ 1,857 (+6303.45%)
Mutual labels:  intent
Intentlogger
Dump intent content into logcat
Stars: ✭ 84 (+189.66%)
Mutual labels:  intent
Emailintentbuilder
An Android Library for the creation of SendTo Intents with mailto: URI
Stars: ✭ 168 (+479.31%)
Mutual labels:  intent
Dart
Extras binding and intent builders for Android apps.
Stars: ✭ 1,203 (+4048.28%)
Mutual labels:  intent
Sapconversationalai
✨ 🤖 🤖 Build your own conversational bot on our Collaborative Bot Platform! 🤖🤖 ✨
Stars: ✭ 247 (+751.72%)
Mutual labels:  intent
Robin
Robin is a logging library for Bundle data passed between Activities and fragments. It also provides a callback to send screen views of user visited pages to your analytics client
Stars: ✭ 63 (+117.24%)
Mutual labels:  intent
Know Your Intent
State of the Art results in Intent Classification using Sematic Hashing for three datasets: AskUbuntu, Chatbot and WebApplication.
Stars: ✭ 116 (+300%)
Mutual labels:  intent
Navigator
Android Multi-module navigator, trying to find a way to navigate into a modularized android project
Stars: ✭ 131 (+351.72%)
Mutual labels:  intent
Bracer
Pass parameters safely and quickly between activities or fragments.
Stars: ✭ 57 (+96.55%)
Mutual labels:  intent
React Native Share
Social share, sending simple data to other apps.
Stars: ✭ 2,955 (+10089.66%)
Mutual labels:  intent

LUIS.ai for Golang

GitHub license GoDoc Build Status Go

Language Understanding Intelligent Service (LUIS)

LUIS lets your app understand language

  • LUIS is in beta and free to use
  • Supported browsers: Internet Explorer 10/11, Chrome

In LUIS you can:

  • Create language understanding models.
  • Use pre-built, world-class models from Bing and Cortana.
  • Deploy your models to an HTTP endpoint.
  • Activate models on any device.

Here is some suggestion and limitation you might want to check before add all you intent. Chinese

How to get APP_ID and APP_KEY

APP_KEY

Login and go to LUIS key page https://www.luis.ai/home/keys

You can see the API_KEY in "My Keys".

APP_ID

Create a new App (if you don't have one) and in the APP dashboard, you can get APP_ID from web URL. It might be 12341be8-8cfb-471c-b05a-636d58cd5678

Version ID (Important)

Before use this SDK, you must run follow step in luis.ai dashboard.

  • Create new app
  • Add few intent
  • Add Endpoint Key (You could use your API key)
  • Publish your model.

Installation

go get github.com/kkdai/luis

How to use it

var API_KEY string
var APPID string

func main() {
	var API_KEY string
	var APPID string

	APPID = os.Getenv("APP_ID")
	API_KEY = os.Getenv("SUB_KEY")

	if API_KEY == "" {
		fmt.Println("Please export your key to environment first, `export SUB_KEY=12234 && export APP_ID=5678`")
	}
	if API_KEY == "" {
		return
	}

	e := NewLuis(API_KEY, APPID)

	res, err := e.IntelList()

	if err != nil {
		log.Error("Error happen on :", err.Err)
	}
	fmt.Println("Got response:", string(res))
	result := NewIntentListResponse(res)
	fmt.Println("Luis Intent Ret", result)

	//Add utterances
	ex := ExampleJson{ExampleText: "test", SelectedIntentName: "test2"}
	res, err = e.AddLabel(ex)

	//Train it
	res, err = e.Train()
	if err != nil {
		log.Error("Error happen on :", err.Err)
	}

	//Predict it, once you have train your models.
	res, err = e.Predict("test string")

	if err != nil {
		log.Error("Error happen on :", err.Err)
	}
	fmt.Println("Got response:", string(res))
	fmt.Println("Get the best predict result:", GetBestScoreIntent(NewPredictResponse(res)))
}

Implemented APIs

  • actionChannels
  • intents
  • predict
  • train
  • example
  • Versions
  • Publish

Unimplement APIs (Yet)

Need your help to send your PR.

Contribute

Please open up an issue on GitHub before you put a lot efforts on pull request. The code submitting to PR must be filtered with gofmt

License

This package is licensed under MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].