Enum PatternMatchingEntity.EntityMatchMode
- java.lang.Object
-
- java.lang.Enum<PatternMatchingEntity.EntityMatchMode>
-
- com.microsoft.cognitiveservices.speech.intent.PatternMatchingEntity.EntityMatchMode
-
- All Implemented Interfaces:
Serializable,Comparable<PatternMatchingEntity.EntityMatchMode>
- Enclosing class:
- PatternMatchingEntity
public static enum PatternMatchingEntity.EntityMatchMode extends Enum<PatternMatchingEntity.EntityMatchMode>
Used to define the match mode of an entity used for intent recognition. Currently this only affects List entities as all other entities only have one mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BasicThis is the basic or default mode of matching based on the EntityType.FuzzyThis will match text within the slot the entity is in, but not require anything from that text.StrictThis will match only exact matches within the entities phrases.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the internal value property idstatic PatternMatchingEntity.EntityMatchModevalueOf(String name)Returns the enum constant of this type with the specified name.static PatternMatchingEntity.EntityMatchMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Basic
public static final PatternMatchingEntity.EntityMatchMode Basic
This is the basic or default mode of matching based on the EntityType.
-
Strict
public static final PatternMatchingEntity.EntityMatchMode Strict
This will match only exact matches within the entities phrases.
-
Fuzzy
public static final PatternMatchingEntity.EntityMatchMode Fuzzy
This will match text within the slot the entity is in, but not require anything from that text.
-
-
Method Detail
-
values
public static PatternMatchingEntity.EntityMatchMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PatternMatchingEntity.EntityMatchMode c : PatternMatchingEntity.EntityMatchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PatternMatchingEntity.EntityMatchMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
Returns the internal value property id- Returns:
- the speech property id
-
-