Skip to content

Commit

Permalink
Fix README.md typo for Intelligence Luis (microsoft#153)
Browse files Browse the repository at this point in the history
* Fix README.md typo for Intelligence Luis

* Change code snippet to syntax highlight JavaScript
  • Loading branch information
MathBunny authored and msft-shahins committed Jul 10, 2017
1 parent a566182 commit 1f9149c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Node/intelligence-LUIS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ One of the key problems in human-computer interactions is the ability of the com

#### Intent Recognizers

The BotBuilder Node SDK contains Recognizer plugins that allow to detect intention from user messages using different methods, from Regex to natural language understading. These Recognizer plugins and the IntentDialog are useful for building more open ended bots that support natural language style understanding.
The BotBuilder Node SDK contains Recognizer plugins that allow to detect intention from user messages using different methods, from Regex to natural language understanding. These Recognizer plugins and the IntentDialog are useful for building more open ended bots that support natural language style understanding.

Out of the box, Bot Builder comes with a [LuisRecognizer](https://docs.botframework.com/en-us/node/builder/chat-reference/classes/_botbuilder_d_.luisrecognizer) that can be used to call a machine learning model you have trained via the [LUIS web site](https://www.luis.ai/). You can create a LuisRecognizer that is pointed at your model and then pass that recognizer to an IntentDialog at creation time using the [options](https://docs.botframework.com/en-us/node/builder/chat-reference/interfaces/_botbuilder_d_.iintentdialogoptions) structure, or you can register a global recognizer that will listen to every user message and detect intention. Check out how to [register a global LuisRecognizer](app.js#L25-L28):

Expand Down Expand Up @@ -155,7 +155,7 @@ bot.dialog('SearchHotels', [

Similarly, the [`ShowHotelsReviews`](app.js#L86) uses a single closure to search for hotel reviews.

````
````JavaScript
bot.dialog('ShowHotelsReviews', function (session, args) {
// retrieve hotel name from matched entities
var hotelEntity = builder.EntityRecognizer.findEntity(args.intent.entities, 'Hotel');
Expand Down

0 comments on commit 1f9149c

Please sign in to comment.