BigQuery Data QnA V1alpha API - Class Google::Cloud::DataQnA::V1alpha::Interpretation (v0.3.0)

Reference documentation and code samples for the BigQuery Data QnA V1alpha API class Google::Cloud::DataQnA::V1alpha::Interpretation.

An interpretation of a natural language query.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#confidence

def confidence() -> ::Float
Returns
  • (::Float) — The level of confidence that one of the interpretations is correct. This is a value in the range [0, 1] where a value of 0.5 or below is to be considered a low confidence.

#confidence=

def confidence=(value) -> ::Float
Parameter
  • value (::Float) — The level of confidence that one of the interpretations is correct. This is a value in the range [0, 1] where a value of 0.5 or below is to be considered a low confidence.
Returns
  • (::Float) — The level of confidence that one of the interpretations is correct. This is a value in the range [0, 1] where a value of 0.5 or below is to be considered a low confidence.

#data_query

def data_query() -> ::Google::Cloud::DataQnA::V1alpha::DataQuery
Returns

#data_query=

def data_query=(value) -> ::Google::Cloud::DataQnA::V1alpha::DataQuery
Parameter
Returns

#data_sources

def data_sources() -> ::Array<::String>
Returns
  • (::Array<::String>) — List of data sources used in the current understanding.

#data_sources=

def data_sources=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — List of data sources used in the current understanding.
Returns
  • (::Array<::String>) — List of data sources used in the current understanding.

#execution_info

def execution_info() -> ::Google::Cloud::DataQnA::V1alpha::ExecutionInfo
Returns

#execution_info=

def execution_info=(value) -> ::Google::Cloud::DataQnA::V1alpha::ExecutionInfo
Parameter
Returns

#human_readable

def human_readable() -> ::Google::Cloud::DataQnA::V1alpha::HumanReadable
Returns

#human_readable=

def human_readable=(value) -> ::Google::Cloud::DataQnA::V1alpha::HumanReadable
Parameter
Returns

#interpretation_structure

def interpretation_structure() -> ::Google::Cloud::DataQnA::V1alpha::InterpretationStructure
Returns

#interpretation_structure=

def interpretation_structure=(value) -> ::Google::Cloud::DataQnA::V1alpha::InterpretationStructure
Parameter
Returns

#unused_phrases

def unused_phrases() -> ::Array<::String>
Returns
  • (::Array<::String>) — A list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.

#unused_phrases=

def unused_phrases=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.
Returns
  • (::Array<::String>) — A list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.