SemanticValue.Confidence 속성

정의

SemanticValue의 현재 인스턴스가 반환된 구문 의미 분석의 정확성에 관한 확신도의 상대 측정을 반환합니다

public:
 property float Confidence { float get(); };
public float Confidence { get; }
member this.Confidence : single
Public ReadOnly Property Confidence As Single

속성 값

Single

SemanticValue의 현재 인스턴스가 반환된 구문 의미 분석의 확신도에 대한 상대 측정인 float을 반환합니다

예제

다음 예제에서는 재귀적으로 트래버스 되 고 다음 정보 (신뢰도 포함)으로 표시를 TreeNodeCollection, 되거나 노드로 트리 구조의 의미 체계를 구성 하는 데 구를 인식 합니다.

internal static void CreateSemanticsTreeNodes(  
        TreeNodeCollection nodes,  
        SemanticValue semantics,  
        String name)   
{  
  string semanticsText =   
      String.Format("  {0}  (Confidence {1})", name,semantics.Confidence);  

  // Format integers as hexadecimal.  
  if (semantics.Value == null )  
  {  
    semanticsText = semanticsText + " = null";  
  }  
  else if (semantics.Value.GetType() == typeof(int))   
  {  
    semanticsText = String.Format("{0} = {1:X} ", semanticsText, semantics.Value);  
  }   
  else   
  {  
    semanticsText = semanticsText + " = " + semantics.Value.ToString();  
  }  

  TreeNode semanticsNode = new TreeNode(semanticsText);  
  foreach (KeyValuePair<String, SemanticValue> child in semantics)   
  {  
    CreateSemanticsTreeNodes(semanticsNode.Nodes, child.Value, child.Key);  
  }  
  nodes.Add(semanticsNode);  
}  

설명

합니다 SemanticValue.Confidence 구문 의미 분석의 정확성에 대 한 측정값을 반환 하는 속성을 사용 하 여 혼동 하지 마십시오는 RecognizedPhrase.Confidence 의 음성 인식 정확도 측정값을 반환 하는 속성입니다.

적용 대상