Find Class

  • java.lang.Object
    • com.microsoft.bot.dialogs.choices.Find

public final class Find

Contains methods for matching user input against a list of choices.

Method Summary

Modifier and Type Method and Description
static java.util.List<ModelResult<FoundChoice>> findChoices(String utterance, List<Choice> choices)

Matches user input against a list of Choices.

static java.util.List<ModelResult<FoundChoice>> findChoices(String utterance, List<Choice> choices, FindChoicesOptions options)

Matches user input against a list of Choices.

static java.util.List<ModelResult<FoundChoice>> findChoicesFromStrings(String utterance, List<String> choices)

Matches user input against a list of strings.

static java.util.List<ModelResult<FoundChoice>> findChoicesFromStrings(String utterance, List<String> choices, FindChoicesOptions options)

Matches user input against a list of strings.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

findChoices

public static List> findChoices(String utterance, List choices)

Matches user input against a list of Choices.

Parameters:

utterance - The input.
choices - The list of choices.

Returns:

A list of found choices, sorted by most relevant first.

findChoices

public static List> findChoices(String utterance, List choices, FindChoicesOptions options)

Matches user input against a list of Choices.

Parameters:

utterance - The input.
choices - The list of choices.
options - Optional, options to control the recognition strategy.

Returns:

A list of found choices, sorted by most relevant first.

findChoicesFromStrings

public static List> findChoicesFromStrings(String utterance, List choices)

Matches user input against a list of strings.

Parameters:

utterance - The input.
choices - The list of choices.

Returns:

A list of found choices, sorted by most relevant first.

findChoicesFromStrings

public static List> findChoicesFromStrings(String utterance, List choices, FindChoicesOptions options)

Matches user input against a list of strings.

Parameters:

utterance - The input.
choices - The list of choices.
options - Optional, options to control the recognition strategy.

Returns:

A list of found choices, sorted by most relevant first.

Applies to