- Resource: PhraseMatcher
- PhraseMatcherType
- PhraseMatchRuleGroup
- PhraseMatchRuleGroupType
- PhraseMatchRule
- PhraseMatchRuleConfig
- ExactMatchConfig
- SemanticMatchConfig
- RegexMatchConfig
- Methods
Resource: PhraseMatcher
The phrase matcher resource.
JSON representation |
---|
{ "name": string, "revisionId": string, "versionTag": string, "revisionCreateTime": string, "displayName": string, "type": enum ( |
Fields | |
---|---|
name |
The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phraseMatcher} |
revision |
Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567 |
version |
The customized version tag to use for the phrase matcher. If not specified, it will default to |
revision |
Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
display |
The human-readable name of the phrase matcher. |
type |
Required. The type of this phrase matcher. |
active |
Applies the phrase matcher only when it is active. |
phrase |
A list of phase match rule groups that are included in this matcher. |
activation |
Output only. The most recent time at which the activation status was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
role |
The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript. |
update |
Output only. The most recent time at which the phrase matcher was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
language |
The language code of this segment as a BCP-47 language tag. Example: "en-US". If the languageCode is unspecified, it will match everything. |
PhraseMatcherType
Specifies how to combine each phrase match rule group to determine whether there is a match.
Enums | |
---|---|
PHRASE_MATCHER_TYPE_UNSPECIFIED |
Unspecified. |
ALL_OF |
Must meet all phrase match rule groups or there is no match. |
ANY_OF |
If any of the phrase match rule groups are met, there is a match. |
PhraseMatchRuleGroup
A message representing a rule in the phrase matcher.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Required. The type of this phrase match rule group. |
phrase |
A list of phrase match rules that are included in this group. |
phrase |
A list of phrase match rule groups that are included in this group. |
role |
The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript. |
language |
The language code of this segment as a BCP-47 language tag. Example: "en-US". If the languageCode is unspecified, it will match everything. |
PhraseMatchRuleGroupType
Specifies how to combine each phrase match rule for whether there is a match.
Enums | |
---|---|
PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED |
Unspecified. |
ALL_OF |
Must meet all phrase match rules or there is no match. |
ANY_OF |
If any of the phrase match rules are met, there is a match. |
PhraseMatchRule
The data for a phrase match rule.
JSON representation |
---|
{
"query": string,
"negated": boolean,
"config": {
object ( |
Fields | |
---|---|
query |
Required. The phrase to be matched. |
negated |
Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment. |
config |
Provides additional information about the rule that specifies how to apply the rule. |
PhraseMatchRuleConfig
Configuration information of a phrase match rule.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field config . The configuration of the phrase match rule. config can be only one of the following: |
|
exact |
The configuration for the exact match rule. |
semantic |
The configuration for the semantic match rule. |
regex |
The configuration for the regex match rule. |
ExactMatchConfig
Exact match configuration.
JSON representation |
---|
{ "caseSensitive": boolean } |
Fields | |
---|---|
case |
Whether to consider case sensitivity when performing an exact match. |
SemanticMatchConfig
Semantic match configuration.
JSON representation |
---|
{ "similarityThreshold": number } |
Fields | |
---|---|
similarity |
Only text with a similarity greater than or equal to the threshold will be considered to be a match to the provided query. Ranges from 0 - 1. |
RegexMatchConfig
This type has no fields.
Regex match configuration.
Methods |
|
---|---|
|
Creates a phrase matcher. |
|
Deletes a phrase matcher. |
|
Gets a phrase matcher. |
|
Lists phrase matchers. |
|
Updates a phrase matcher. |