Skip to content

Commit 3e6f649

Browse files
author
Darren Cohen
committed
Add spaces since it does not do line break
1 parent 99fae48 commit 3e6f649

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

articles/cognitive-services/Speech-Service/includes/pattern-matching-overview.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Let's assume we have a list of floors for our elevator. Since we're dealing with
6969
When an entity with an ID is of type "List" and is in "Strict" mode, the engine will only match if the text in the slot appears in the list.
7070

7171
> "take me to floor one" will match.
72+
7273
> "take me to floor 5" will not.
7374
7475
It's important to note that the Intent will not match, not just the entity.
@@ -85,17 +86,23 @@ The "PrebuiltInteger" entity is used when you expect to get an integer in that s
8586
#### Examples of a valid match and return values
8687

8788
> "Two thousand one hundred and fifty-five" -> "2155"
89+
8890
> "first" -> "1"
91+
8992
> "a" -> "1"
93+
9094
> "four oh seven one" -> "4071"
9195
9296
If there's text that is not recognizable as a number, the entity and intent will not match.
9397

9498
#### Examples of an invalid match
9599

96100
> "the third"
101+
97102
> "first floor I think"
103+
98104
> "second plus three"
105+
99106
> "thirty-three and anyways"
100107
101108
Consider our elevator example.
@@ -111,12 +118,19 @@ In the pattern it's allowed to include words or entities that may be present in
111118
To see how this would reduce the number of patterns needed consider the following set.
112119

113120
> "Take me to the {floorName}"
121+
114122
> "Take me the {floorName}"
123+
115124
> "Take me to {floorName}"
125+
116126
> "take me {floorName}"
127+
117128
> "Take me to the {floorName}" please
129+
118130
> "Take me the {floorName}" please
131+
119132
> "Take me to {floorName}" please
133+
120134
> "take me {floorName}" please
121135
122136
These can all be reduced to a single pattern with optional items.

0 commit comments

Comments
 (0)