Class Interpretation (2.0.0-alpha01)

public sealed class Interpretation : IMessage<Interpretation>, IEquatable<Interpretation>, IDeepCloneable<Interpretation>, IBufferMessage, IMessage

An interpretation of a natural language query.

Inheritance

Object > Interpretation

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

Interpretation()

public Interpretation()

Interpretation(Interpretation)

public Interpretation(Interpretation other)
Parameter
NameDescription
otherInterpretation

Properties

Confidence

public double Confidence { get; set; }

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.

Property Value
TypeDescription
Double

DataQuery

public DataQuery DataQuery { get; set; }

Representation of the data query to be sent to the backend.

Property Value
TypeDescription
DataQuery

DataSources

public RepeatedField<string> DataSources { get; }

List of data sources used in the current understanding.

Property Value
TypeDescription
RepeatedField<String>

ExecutionInfo

public ExecutionInfo ExecutionInfo { get; set; }

Information about the backend response. This is populated only if execution of an interpretation was requested.

Property Value
TypeDescription
ExecutionInfo

HumanReadable

public HumanReadable HumanReadable { get; set; }

Human readable representation of the query.

Property Value
TypeDescription
HumanReadable

InterpretationStructure

public InterpretationStructure InterpretationStructure { get; set; }

Information about the interpretation structure that helps to understand and visualize the response.

Property Value
TypeDescription
InterpretationStructure

UnusedPhrases

public RepeatedField<string> UnusedPhrases { get; }

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.

Property Value
TypeDescription
RepeatedField<String>