public LuisIntentScorable(ILuisService service, ILuisModel model, LuisIntentAttribute intent, IScorable <IResolver, InnerScore> inner) : base(inner) { SetField.NotNull(out this.service, nameof(service), service); SetField.NotNull(out this.model, nameof(model), model); SetField.NotNull(out this.intent, nameof(intent), intent); }
public static IScorable <IResolver, IntentRecommendation> When(this IScorable <IResolver, Binding> scorable, ILuisModel model, LuisIntentAttribute intent, ILuisService service = null) { service = service ?? new LuisService(model); return(new LuisIntentScorable <Binding, Binding>(service, model, intent, scorable)); }