Class SemanticSimilarityResult (0.3.0)

SemanticSimilarityResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

Name Description
score int
Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4. This field is a member of oneof_ _score.
label str
Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
explanation str
Output only. The explanation for the semantic similarity score.
outcome google.cloud.ces_v1beta.types.EvaluationResult.Outcome
Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.