View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation (google_api_content_warehouse v0.2.0)

The QRefAnnotator annotates spans of input with freebase-ids and collection-information. NEXT ID TO USE: 41

Attributes

  • confidenceScore (type: float(), default: nil) - The confidence (in [0, 1]) of the entity being correctly annotated.
  • otherMetadata (type: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t, default: nil) - Metadata to be passed through from the AnnotationContext API.
  • oysterId (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t, default: nil) - The geo oyster_id of the entity, relevant only for locations. Only included if the QRefAnnotator is initialised with include_oyster_id.
  • sourceTypeList (type: GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeList.t, default: nil) - If the annotation was created by using personal data, we record the provenance for that data here.
  • isNimbleAnnotation (type: boolean(), default: nil) - Whether this annotation originates from nimble. (go/nimble-annotator)
  • deprecatedMdvcSupportingMid (type: list(String.t), default: nil) - DEPRECATED: Higher level id's that support the given id. This field has been deprecated in favor of related_entity. b/27363861
  • displayName (type: String.t, default: nil) - Copy the display info. This can be used by annotators to give grammars a canonical name for an entity. For instance, the media grammar could use it to output the same canonical name for "rock music" and "rock".
  • lowConfidence (type: boolean(), default: nil) - Whether this entity is low confidence. Not used. Currently whitelisted entities below min_confidence threshold are marked as low confidence and maybe not trusted by downstreams.
  • clusterId (type: String.t, default: nil) - The ID of the cluster (set entity) this entity belongs to.
  • freebaseMid (type: String.t, default: nil) - The mid of the entity in freebase associated with this span.
  • relatedEntity (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingRelatedEntity.t), default: nil) - Mids related to the given entity
  • mdvcVerticals (type: list(String.t), default: nil) - The set of verticals this summary node belongs to.
  • gaiaId (type: String.t, default: nil) - The Gaia ID for this entity. This is populated generally for people and businesses.
  • isMdvcDimension (type: boolean(), default: nil) - True if this entity is an mdvc dimension of some other annotated entity. Only included if the QRefAnnotator is initialised with include_annotated_relationships.
  • personalSummaryNodeChild (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t), default: nil) - Personal summary nodes are compound entities made up of entities and their attributes, where the entities can be compound too. E.g., "my father's mother" can have a summary node annotation of "Mother(Father(Myself))".
  • matchedLightweightToken (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefLightweightTokensMatchedLightweightToken.t), default: nil) -
  • location (type: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t, default: nil) - The center point of this location. This is either directly provided by the FeatureProto.center field or the centroid using the points of the polygon in the FeatureProto.
  • subCluster (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationSubCluster.t), default: nil) -
  • addedByCloseAnswers (type: boolean(), default: nil) - Whether this qref annotation was created by CloseAnswers on Postref. Annotations of this type don't correspond to a particular mention of the entity on the query but rather to an interpretation of the full query.
  • referenceScore (type: number(), default: nil) - The confidence (in [0, 1]) that the annotation is reference that implies another entity. (eg "my hotel" in "navigate to my hotel" is reference to explicit hotel from user hotel reservation).
  • globalProductClusterId (type: list(String.t), default: nil) - The shopping global product cluster id(s) of the annotated entity (in KG, the key(s) of type /business/variant_cluster).
  • mdvcChild (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t), default: nil) - Nested annotations that represent subparts of the given mdvc full annotation. An MDVC full annotation is outputted as the summary node as the root node, and all the children of it as leaves (mdvc_child). QRef outputs a graph of relationships between the mdvc enties, and for mdvc full the aquatator nests the relevant children inside the summary node's proto.
  • clusterSiblingMid (type: list(String.t), default: nil) - The set of mids that are members of the same cluster.
  • clusterSetScore (type: float(), default: nil) - Cluster set qref confidence score.
  • resolutionScore (type: number(), default: nil) - The confidence (in [0, 1]) that the annotation was created on an implicit mention (eg my hotel) as opposed to an explicit mention (eg: the westin copley square)
  • merlotCategory (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationMerlotCategoryData.t), default: nil) -
  • locationType (type: integer(), default: nil) - The location type of the entity, as an int32 representing a TypeCategory enum value. For example, this could be TYPE_LOCALITY (37) or TYPE_COUNTRY (33). We store this type as an int because including FeatureProto would cause java/com/google/ads/adh/pipeline/bigquery:ProtoCatalog to become too large, resulting in OOM errors.
  • interpretationNumber (type: integer(), default: nil) - The index of the QueryJoin interpretation from which this annotation was obtained. This field is not used for entities coming from low-confidence annotations, since such entities are not included in any interpretation.
  • attributeId (type: String.t, default: nil) - Attribute ID of a personal_summary_node_child.
  • deprecatedEquivalentMids (type: list(String.t), default: nil) - DEPRECATED: Equivalent ids (e.g. de-duped mids) for this entity.
  • collectionMembership (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationCollectionMembership.t), default: nil) -
  • entityNumber (type: integer(), default: nil) - The index of the entity from which this annotation is obtained, within the WebrefEntities message in the interpretation defined by interpretation_number, above.
  • annotatedSpan (type: String.t, default: nil) - A copy of the span of canonical (raw) parser input text corresponding to this annotation.
  • entityRelationship (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationEntityRelationship.t), default: nil) - The relationship information from QRef. Only included if the QRefAnnotator is initialised with include_annotated_relationships.
  • mergedImpliedEntity (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation.t), default: nil) - A list of any implied entities merged into this annotation during parsing. Order is derivation-dependent.
  • entitySourceData (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingEntitySourceData.t, default: nil) - Holds information about the backends which contributed to this entity.
  • productLineId (type: list(String.t), default: nil) - The shopping product line id(s) of the annotated /business/shopping_product_line entity.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotation{
  addedByCloseAnswers: boolean() | nil,
  annotatedSpan: String.t() | nil,
  attributeId: String.t() | nil,
  clusterId: String.t() | nil,
  clusterSetScore: float() | nil,
  clusterSiblingMid: [String.t()] | nil,
  collectionMembership:
    [
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationCollectionMembership.t()
    ]
    | nil,
  confidenceScore: float() | nil,
  deprecatedEquivalentMids: [String.t()] | nil,
  deprecatedMdvcSupportingMid: [String.t()] | nil,
  displayName: String.t() | nil,
  entityNumber: integer() | nil,
  entityRelationship:
    [
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationEntityRelationship.t()
    ]
    | nil,
  entitySourceData:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingEntitySourceData.t()
    | nil,
  freebaseMid: String.t() | nil,
  gaiaId: String.t() | nil,
  globalProductClusterId: [String.t()] | nil,
  interpretationNumber: integer() | nil,
  isMdvcDimension: boolean() | nil,
  isNimbleAnnotation: boolean() | nil,
  location: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil,
  locationType: integer() | nil,
  lowConfidence: boolean() | nil,
  matchedLightweightToken:
    [
      GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefLightweightTokensMatchedLightweightToken.t()
    ]
    | nil,
  mdvcChild: [t()] | nil,
  mdvcVerticals: [String.t()] | nil,
  mergedImpliedEntity: [t()] | nil,
  merlotCategory:
    [
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationMerlotCategoryData.t()
    ]
    | nil,
  otherMetadata:
    GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil,
  oysterId:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil,
  personalSummaryNodeChild: [t()] | nil,
  productLineId: [String.t()] | nil,
  referenceScore: number() | nil,
  relatedEntity:
    [GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingRelatedEntity.t()]
    | nil,
  resolutionScore: number() | nil,
  sourceTypeList:
    GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeList.t() | nil,
  subCluster:
    [
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingQRefAnnotationSubCluster.t()
    ]
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.