Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the Prediction class.
 /// </summary>
 /// <param name="topIntent">The name of the top scoring intent.</param>
 /// <param name="intents">A dictionary representing the intents that
 /// fired.</param>
 /// <param name="entities">A dictionary representing the entities that
 /// fired.</param>
 /// <param name="alteredQuery">The query after spell checking. Only set
 /// if spell check was enabled and a spelling mistake was
 /// found.</param>
 /// <param name="sentiment">The result of the sentiment
 /// analysis.</param>
 public Prediction(string topIntent, IDictionary <string, Intent> intents, IDictionary <string, object> entities, string alteredQuery = default(string), Sentiment sentiment = default(Sentiment))
 {
     AlteredQuery = alteredQuery;
     TopIntent    = topIntent;
     Intents      = intents;
     Entities     = entities;
     Sentiment    = sentiment;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the LuisResult class.
 /// </summary>
 /// <param name="query">The input utterance that was analized.</param>
 /// <param name="alteredQuery">The corrected utterance (when spell
 /// checking was enabled).</param>
 /// <param name="intents">All the intents (and their score) that were
 /// detected from utterance.</param>
 /// <param name="entities">The entities extracted from the
 /// utterance.</param>
 /// <param name="compositeEntities">The composite entities extracted
 /// from the utterance.</param>
 public LuisResult(string query = default(string), string alteredQuery = default(string), IntentModel topScoringIntent = default(IntentModel), IList <IntentModel> intents = default(IList <IntentModel>), IList <EntityModel> entities = default(IList <EntityModel>), IList <CompositeEntityModel> compositeEntities = default(IList <CompositeEntityModel>), Sentiment sentimentAnalysis = default(Sentiment))
 {
     Query             = query;
     AlteredQuery      = alteredQuery;
     TopScoringIntent  = topScoringIntent;
     Intents           = intents;
     Entities          = entities;
     CompositeEntities = compositeEntities;
     SentimentAnalysis = sentimentAnalysis;
     CustomInit();
 }