Skip to content

Commit a2b8288

Browse files
committed
[Cogsvcs] LUIS - tutorial - regex
1 parent 12aa645 commit a2b8288

12 files changed

+222
-197
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@
567567
"redirect_url": "/azure/cognitive-services//QnAMaker/Quickstarts/get-answer-from-knowledge-base-using-url-tool",
568568
"redirect_document_id": false
569569
},
570+
{
571+
"source_path": "articles/cognitive-services/LUIS/luis-quickstart-intents-regex-entity.md",
572+
"redirect_url": "/azure/cognitive-services/LUIS/tutorial-regex-entity",
573+
"redirect_document_id": false
574+
},
570575
{
571576
"source_path": "articles/cognitive-services/LUIS/luis-quickstart-intent-and-sentiment-analysis.md",
572577
"redirect_url": "/azure/cognitive-services/LUIS/tutorial-publish-settings",

articles/cognitive-services/LUIS/luis-quickstart-intents-regex-entity.md

Lines changed: 0 additions & 185 deletions
This file was deleted.
26 KB
Loading
Loading
Loading

articles/cognitive-services/LUIS/reference-entity-regular-expression.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Regular expression entity type - LUIS
33
titleSuffix: Azure Cognitive Services
4-
description: A regular expression is best for raw utterance text. It ignores case and ignores cultural variant. Regular expression matching is applied after spell-check alterations at the character level, not the token level.
4+
description: A regular expression is best for raw utterance text. It ignores case and ignores cultural variant. Regular expression matching is applied after spell-check alterations at the character level, not the token level.
55
services: cognitive-services
66
author: diberry
77
manager: nitinme
@@ -11,16 +11,16 @@ ms.topic: reference
1111
ms.date: 09/29/2019
1212
ms.author: diberry
1313
---
14-
# Regular expression entity
14+
# Regular expression entity
1515

1616
A regular expression entity extracts an entity based on a regular expression pattern you provide.
1717

18-
A regular expression is best for raw utterance text. It ignores case and ignores cultural variant. Regular expression matching is applied after spell-check alterations at the character level, not the token level. If the regular expression is too complex, such as using many brackets, you're not able to add the expression to the model. Uses part but not all of the [.NET Regex](https://docs.microsoft.com/dotnet/standard/base-types/regular-expressions) library.
18+
A regular expression is best for raw utterance text. It ignores case and ignores cultural variant. Regular expression matching is applied after spell-check alterations at the character level, not the token level. If the regular expression is too complex, such as using many brackets, you're not able to add the expression to the model. Uses part but not all of the [.NET Regex](https://docs.microsoft.com/dotnet/standard/base-types/regular-expressions) library.
1919

2020
**The entity is a good fit when:**
2121

2222
* The data are consistently formatted with any variation that is also consistent.
23-
* The regular expression does not need more than 2 levels of nesting.
23+
* The regular expression does not need more than 2 levels of nesting.
2424

2525
![Regular expression entity](./media/luis-concept-entities/regex-entity.png)
2626

@@ -30,7 +30,7 @@ Regular expressions may match more than you expect to match. An example of this
3030

3131
```javascript
3232
(plus )?(zero|one|two|three|four|five|six|seven|eight|nine)(\s+(zero|one|two|three|four|five|six|seven|eight|nine))*
33-
```
33+
```
3434
3535
This regex expression also matches any words that end with these numbers, such as `phone`. In order to fix issues like this, make sure the regex matches takes into account word boundaries. The regex to use word boundaries for this example is used in the following regex:
3636
@@ -96,8 +96,8 @@ This is the JSON if `verbose=true` is set in the query string:
9696
}
9797
```
9898

99-
* * *
99+
* * *
100100

101101
## Next steps
102102

103-
In this [tutorial](luis-quickstart-intents-regex-entity.md), create an app to extract consistently-formatted data from an utterance using the **Regular Expression** entity.
103+
In this [tutorial](tutorial-regex-entity.md), create an app to extract consistently-formatted data from an utterance using the **Regular Expression** entity.

0 commit comments

Comments
 (0)