PhraseSetArgs

data class PhraseSetArgs(val boost: Output<Double>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val phraseSetId: Output<String>? = null, val phrases: Output<List<PhraseArgs>>? = null, val project: Output<String>? = null) : ConvertibleToJava<PhraseSetArgs>

Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.

Constructors

Link copied to clipboard
fun PhraseSetArgs(boost: Output<Double>? = null, location: Output<String>? = null, name: Output<String>? = null, phraseSetId: Output<String>? = null, phrases: Output<List<PhraseArgs>>? = null, project: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PhraseSetArgs

Properties

Link copied to clipboard
val boost: Output<Double>? = null

Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though boost can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

The resource name of the phrase set.

Link copied to clipboard
val phrases: Output<List<PhraseArgs>>? = null

A list of word and phrases.

Link copied to clipboard
val phraseSetId: Output<String>? = null

The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.

Link copied to clipboard
val project: Output<String>? = null