public static interface PhraseSet.PhraseOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
float |
getBoost()
Hint Boost.
|
String |
getValue()
The phrase itself.
|
com.google.protobuf.ByteString |
getValueBytes()
The phrase itself.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getValue()
The phrase itself.
string value = 1;com.google.protobuf.ByteString getValueBytes()
The phrase itself.
string value = 1;float getBoost()
Hint Boost. Overrides the boost set at the phrase set level. 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 will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 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.
float boost = 2;Copyright © 2023 Google LLC. All rights reserved.