public sealed class Interpretation : IMessage<Interpretation>, IEquatable<Interpretation>, IDeepCloneable<Interpretation>, IBufferMessage, IMessage
Reference documentation and code samples for the Data QnA v1alpha API class Interpretation.
An interpretation of a natural language query.
Implements
IMessageInterpretation, IEquatableInterpretation, IDeepCloneableInterpretation, IBufferMessage, IMessageNamespace
Google.Cloud.DataQnA.V1AlphaAssembly
Google.Cloud.DataQnA.V1Alpha.dll
Constructors
Interpretation()
public Interpretation()
Interpretation(Interpretation)
public Interpretation(Interpretation other)
Parameter | |
---|---|
Name | Description |
other | Interpretation |
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 | |
---|---|
Type | Description |
double |
DataQuery
public DataQuery DataQuery { get; set; }
Representation of the data query to be sent to the backend.
Property Value | |
---|---|
Type | Description |
DataQuery |
DataSources
public RepeatedField<string> DataSources { get; }
List of data sources used in the current understanding.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
ExecutionInfo
public ExecutionInfo ExecutionInfo { get; set; }
Information about the backend response. This is populated only if execution of an interpretation was requested.
Property Value | |
---|---|
Type | Description |
ExecutionInfo |
HumanReadable
public HumanReadable HumanReadable { get; set; }
Human readable representation of the query.
Property Value | |
---|---|
Type | Description |
HumanReadable |
InterpretationStructure
public InterpretationStructure InterpretationStructure { get; set; }
Information about the interpretation structure that helps to understand and visualize the response.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RepeatedFieldstring |