示例#1
0
 /// <summary>
 /// Instance from message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="user">The user.</param>
 /// <param name="featureSet">The feature set.</param>
 /// <param name="includeSharedFeatures">if set to <c>true</c> [include shared features].</param>
 /// <returns>
 /// The <see cref="Instance" />.
 /// </returns>
 internal static Instance FromMessage(Message message, User user, FeatureSet featureSet, bool includeSharedFeatures)
 {
     return(new Instance
     {
         FeatureSet = featureSet,
         FeatureValues = featureSet.ComputeFeatureValues(user, message, includeSharedFeatures),
         Label = message.IsRepliedTo
     });
 }