Author Archives: om

How Alexa’s intents, utterances and slots works together ?


To create a Alexa skill, you will first define the intents. For each intent you will add utterances and slots. Utterances are phrases that invoke the intent. Slots are input data required to fulfill the intent. Lastly, you will provide the business logic necessary to execute the action.

Q. What is an Intent?

To build an Amazon skill you will identify a set of goals or ‘intents’ you want your skill to achieve.
A skill can have multiple intents. For example, a ‘BookTickets’ bot can have intents to make reservations, cancel reservations and review
reservations.

Q. What is an utterance?

An ‘utterance’ is the spoken or typed phrase to invoke an intent. For example, to invoke intent to make reservations you would define an utterance such as “Can I make a reservation?”

Q. What are slots?

To fulfill an intent, the Amazon skill needs information from the user. This information is captured in ‘slots’. For example, you would define show name and time as slots for intent to make reservations.

Share

Chat Bot comparison luis.ai vs api.ai vs wit.ai.

Amazon Lex is a service for building conversational interfaces into any application using voice and text. Lex provides the advanced deep learning functionalities of automatic speech recognition (ASR) for converting speech to text, and natural language understanding (NLU) to recognize the intent of the text, to enable you to build applications with highly engaging user experiences and lifelike conversational interactions. With Amazon Lex, the same deep learning technologies that power Amazon Alexa are now available to any developer, enabling you to quickly and easily build sophisticated, natural language, conversational bots (“chatbots”).

https://aws.amazon.com/lex/

Share

Cesium – How to show pyramid with polygon base in CZML ?

Share

Cesium – How to show multiple polylines using czml ?

By : https://github.com/AnalyticalGraphicsInc/cesium/issues/3598

Share

Cesium – How to make an InfoBox pop up on demand ?

It’s a bit of a hack, but you can make the info popup display whatever you like by creating a fake entity and setting it as the viewer’s selected entity. For example:

Share

Cesium – How to Improve InfoBox ?

In order to run a script in the infobox, you have to enable scrips to run in the iframe. This is disabled by default for security reasons, in case you don’t know the source of the data populating the infobox.
You can enable scrips with this code:

Also, to get the current value of an entity property, you can use .getValue(viewer.clock.currentTime);

Share

Cesium – How to make an InfoBox pop up on demand ?

Share

Cesium – How to show tooltip in cesium ?

Share

How do I find ElasticSearch path to install plugins?

This is for new ElasticSearch user.

If you have installed elastic search and unable to install plugins, here are the easy steps.

1. Type this command

elasticsearch-plugin

Locate your home directory ( Look for Settings -> Path -> Home for value )
2. Go to Location (Example on the picture above)

How to test –

Open this URL

http://localhost:9200/_plugin/head/

If you see this, your plugin is working.
phpmind-elasticsearch-head-plugin

similarly, you can install other plugins –

About BigDesk Plugin phpmind-elasticsearch-bigdesk-plugin

How to test – http://localhost:9200/_plugin/bigdesk/

phpmind-elasticsearch-bigdesk-plugin-test

kopf is a simple web administration tool for elasticsearch written in JavaScript + AngularJS + jQuery + Twitter bootstrap

How to install –

<pre>sudo bin/plugin install https://github.com/lukas-vlcek/bigdesk/archive/master.zip</pre>

phpmind-elasticsearch-kopf-plugin

 

How to test –  http://localhost:9200/_plugin/kopf

phpmind-elasticsearch-kopf-plugin-test

About  koph 

Share