RecognizedPhrase.ConstructSmlFromSemantics メソッド

定義

RecognizedPhrase オブジェクト内のセマンティック情報のセマンティック マークアップ言語 (SML) ドキュメントを返します。

public:
 System::Xml::XPath::IXPathNavigable ^ ConstructSmlFromSemantics();
public System.Xml.XPath.IXPathNavigable ConstructSmlFromSemantics();
member this.ConstructSmlFromSemantics : unit -> System.Xml.XPath.IXPathNavigable
Public Function ConstructSmlFromSemantics () As IXPathNavigable

返品

XPath ナビゲーション可能オブジェクトとしての RecognizedPhrase のセマンティクスの SML 記述を返します。

次の例では、認識された語句のセマンティクスの SML を含む文字列がメソッドから返されます。

private string GetSemanticsSML(RecognizedPhrase result)
{
  if (result.Semantics.Count > 0)
  {
    return result.ConstructSmlFromSemantics().CreateNavigator().OuterXml;
  }
  else
  {
    return null;
  }
}

適用対象