RecognizedPhrase.ConstructSmlFromSemantics Metodo

Definizione

Restituisce un documento SML (Semantic Markup Language) per le informazioni semantiche nell'oggetto RecognizedPhrase .

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

Valori restituiti

Restituisce una descrizione SML della semantica di RecognizedPhrase come oggetto esplorabile XPath.

Esempio

Nell'esempio seguente un metodo restituisce una stringa contenente il codice SML per la semantica di una frase riconosciuta.

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

Si applica a