Bagikan melalui


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SemanticValue Constructor (String, Object, Single)

Initializes a new instance of the SemanticValue class and specifies a semantic value, a key name, and a confidence level.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public Sub New ( _
    keyName As String, _
    value As Object, _
    confidence As Single _
)
'Usage
Dim keyName As String
Dim value As Object
Dim confidence As Single

Dim instance As New SemanticValue(keyName, _
    value, confidence)
public SemanticValue(
    string keyName,
    Object value,
    float confidence
)

Parameters

  • confidence
    Type: System.Single
    A float containing an estimate of the certainty of semantic analysis.

Remarks

There are no restrictions on the type of value to be stored.

An application can retrieve value by using the Value property on a SemanticValue instance.

The confidence parameter (returned by the Confidence property on a SemanticValue instance), should be between 0.0 and 1.0.

See Also

Reference

SemanticValue Class

SemanticValue Members

SemanticValue Overload

Microsoft.Speech.Recognition Namespace