move pattern feature to deprecated

This commit is contained in:
Denise Mak 2017-12-13 08:48:19 -08:00
Родитель 16d8df2c32
Коммит 0ecbf6d6f4
8 изменённых файлов: 36 добавлений и 3 удалений

Просмотреть файл

@ -0,0 +1,22 @@
## Deprecated Features
The __[Pattern feature][LuisFeatures]__ which helped recognize words and phrases that follow a pattern defined by a regular expression, has been deprecated. In the current version of LUIS, if you have entities that follow a pattern, simply label examples of them. The functionality to add pattern features to a LUIS app has been removed. However, if you have existing LUIS apps that implement a pattern feature, they will be supported until December 2018.
___
Additional reading on __[LUIS Features][LuisFeatures]__ can be found here.
[Intents]: ./screenshots/intents.png
[Entity]: ./screenshots/name-entity.png
[Utterances]: ./screenshots/hyphen-utterances.png
[PatternFeatures]: ./screenshots/pattern-features.png
[AddPattern]: ./screenshots/add-pattern.png
[InteractiveTest]: ./screenshots/interactive-test.png
[SampleHyphenatedNamesModel]: ./hyphenated-names.json
[LuisFeatures]: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-feature

Просмотреть файл

@ -1,29 +1,40 @@
## Pattern Feature
The __[Pattern feature][LuisFeatures]__ can help your LUIS app recognize words and phrases that follow a pattern defined by a regular expression. The example describes how to create a LUIS app that uses a pattern feature to help recognize hyphenated names. You can import the sample LUIS app [here][SampleHyphenatedNamesModel].
The __[Pattern feature][LuisFeatures]__ which helped recognize words and phrases that follow a pattern defined by a regular expression, has been deprecated. In the current version of LUIS, if you have entities that follow a pattern, simply label examples of them. The functionality to add pattern features to a LUIS app has been removed. However, if you have existing LUIS apps that implement a pattern feature, they will be supported until December 2018.
### Defining a pattern for hyphenated names
You can import a sample LUIS app LUIS app that uses a pattern feature to help recognize hyphenated names [here][SampleHyphenatedNamesModel].
### Add utterances for hyphenated names
Let's say your chatbot has a `MyNameIs` intent that detects when the user tells you their name, and a `Name` entity for detecting this name.
<!--
![screenshot of intent][Intents]
![screenshot of name entity][Entity]
![screenshot of name entity][Entity] -->
To recognize names that have a hyphen, like "Ann-Marie", add some utterances to the MyNameIs intent that have names of this type.
<!--
![screenshot of utterances][Utterances]
To add a pattern feature, under **Features**, click **Pattern features** and then click the **Add pattern feature** button.
Enter `^\w+-\w+$` for the pattern value. The `^` indicates the beginning of the string. The `\w` indicates an alphanumeric character. The `+` indicates one or more occurences of the character preceding it.
![screenshot of adding the pattern][AddPattern]
-->
### Test the app
In the **Train and Test** pane, click **Train Application**. Once your app is trained, you can see how the LUIS app can recognize hyphenated names in utterances.
<!--
![screenshot of interactive test][InteractiveTest]
-->
### Publish the app
You can publish the LUIS app and view the results in a web browser.

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 14 KiB

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 29 KiB

Двоичные данные
examples/pattern-feature/screenshots/intents.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 9.9 KiB

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 19 KiB

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 12 KiB