PatternMatchingIntent Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. intent. PatternMatchingIntent
- com.
Implements
public final class PatternMatchingIntent
implements KeyedItem
Represents a pattern matching intent used for intent recognition.
Field Summary
Modifier and Type | Field and Description |
---|---|
java.util.Collection<java.lang.String> |
Phrases
Phrases and patterns that will trigger this intent. |
Constructor Summary
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
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the ID for this item. |
void |
setId(String id)
Sets the ID for this item. |
Methods inherited from java.lang.Object
Field Details
Phrases
public Collection
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 Details
PatternMatchingIntent
public PatternMatchingIntent(String intentId)
Creates a pattern matching intent using the specified intent ID.
Parameters:
PatternMatchingIntent
public PatternMatchingIntent(String intentId, String[] phrases)
Creates a pattern matching intent using the specified intent ID.
Parameters:
PatternMatchingIntent
public PatternMatchingIntent(String intentId, Collection
Creates a pattern matching intent using the specified intent ID.
Parameters:
Method Details
getId
public String getId()
Returns the ID for this item.
Returns:
setId
public void setId(String id)
Sets the ID for this item.
Parameters:
Applies to
Azure SDK for Java