Class PatternMatchingIntent
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.intent.PatternMatchingIntent
-
-
Field Summary
Fields Modifier and Type Field Description Collection<String>PhrasesPhrases and patterns that will trigger this intent.
-
Constructor Summary
Constructors Constructor Description PatternMatchingIntent(String intentId)Creates a pattern matching intent using the specified intent ID.PatternMatchingIntent(String intentId, String... phrases)Creates a pattern matching intent using the specified intent ID.PatternMatchingIntent(String intentId, Collection<String> phrases)Creates a pattern matching intent using the specified intent ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Returns the ID for this item.voidsetId(String id)Sets the ID for this item.
-
-
-
Field Detail
-
Phrases
public Collection<String> Phrases
Phrases and patterns that will trigger this intent. At least one phrase must exist to be able to apply this intent to an IntentRecognizer.
-
-
Constructor Detail
-
PatternMatchingIntent
public PatternMatchingIntent(String intentId)
Creates a pattern matching intent using the specified intent ID.- Parameters:
intentId- A string that represents a unique ID for this intent.
-
PatternMatchingIntent
public PatternMatchingIntent(String intentId, Collection<String> phrases)
Creates a pattern matching intent using the specified intent ID.- Parameters:
intentId- A string that represents a unique ID for this intent.phrases- A collection of strings used to populate the intent.
-
-