GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMentionAnnotation
Table of Contents ▼
Jump to a specific part of the page:
Description
SaftMentionAnnotation(s) are used to identify a sub-span of the input with some semantic relevance, for example PER (Person), LOC (Locations) or measure etc. Each SaftMentionAnnotation will have exactly one non-empty field.
Attributes List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
coreference
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftCoreference
, default:nil
)
- Annotations for spans that are resolved coreference mentions. -
entity
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan
, default:nil
)
- Annotations for spans like "san francisco giants". -
measure
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMeasure
, default:nil
)
- Annotations for spans "53 pounds". -
title
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan
, default:nil
)
- Annotations for spans like "the president of the United States".
Type
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMentionAnnotation{
coreference: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftCoreference.t() | nil,
entity: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan.t() | nil,
measure: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMeasure.t() | nil,
title: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan.t() | nil
}
coreference: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftCoreference.t() | nil,
entity: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan.t() | nil,
measure: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMeasure.t() | nil,
title: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan.t() | nil
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMentionAnnotation