public final class MatchReportingStrategy extends Enum
SpeechSearchListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static MatchReportingStrategy |
ALL
Provides matching results on all concepts and phrases in the entire
search query.
|
static MatchReportingStrategy |
SUMMARY
Provides matching results on the top most concepts and top most phrases
in the search query.
|
Modifier and Type | Method and Description |
---|---|
static MatchReportingStrategy |
valueOf(String name) |
static MatchReportingStrategy[] |
values() |
public static final MatchReportingStrategy ALL
For example, in the following query, the phrases "Good Morning", "Hello", "Welcome to", "My name is" are reported when the matches occur. In turn the, concept "Greeting", "Introduction of Agent and Department", and "Opening" are reported when these are matched.
Concept greeting = SpeechFactory.createConcept() .setName("Greeting") .setOperator(SpeechFactory.createAnyOperator()) .setThreshold(45.0f) .addPhrase("Good Morning", 45.0f) .addPhrase("Hello", 45.0f); Concept introduction = SpeechFactory.createConcept() .setName("Introduction of Agent and Department") .setOperator(SpeechFactory.createAnyOperator()) .setThreshold(45.0f) .addPhrase("Welcome to", 45.0f) .addPhrase("My name is", 45.0f); Concept opening = SpeechFactory.createConcept() .setName("Opening") .setOperator(SpeechFactory.createAllOperator()) .setThreshold(45.0f) .setSubConcepts(greeting, introduction);
public static final MatchReportingStrategy SUMMARY
For example, in the following query, only the concept "Opening" is reported when the phrases "Good Morning", "Hello", "Welcome to", "My name is" are matched and the concepts "Greeting", "Introduction of Agent and Department" and "Opening" are satisfied.
Concept greeting = SpeechFactory.createConcept() .setName("Greeting") .setOperator(SpeechFactory.createAnyOperator()) .setThreshold(45.0f) .addPhrase("Good Morning", 45.0f) .addPhrase("Hello", 45.0f); Concept introduction = SpeechFactory.createConcept() .setName("Introduction of Agent and Department") .setOperator(SpeechFactory.createAnyOperator()) .setThreshold(45.0f) .addPhrase("Welcome to", 45.0f) .addPhrase("My name is", 45.0f); Concept opening = SpeechFactory.createConcept() .setName("Opening") .setOperator(SpeechFactory.createAllOperator()) .setThreshold(45.0f) .setSubConcepts(greeting, introduction);
public static MatchReportingStrategy[] values()
public static MatchReportingStrategy valueOf(String name)
Copyright © 2016 Avaya. All Rights Reserved.