botframework - Specifying LUIS dialog spellCheck, slot programmatically -


so far able avoid hardcoding luis appid , key doing following:

var luisservice = new luisservice(new luismodelattribute(configurationmanager.appsettings["luisappid"], configurationmanager.appsettings["luisappkey"])); context.call(new luisdialog(luisservice), resumeafterdialog); 

and having luis dialog declared as:

[serializable] public class luisdialog : luisdialog<object> {     public luisdialog(iluisservice ls) : base(ls)     {     }     .... } 

}

but able set spellcheck=true, log, verbose , other parameters available in luismodel attribute programmatically, there way of doing that?

thanks

i figured out, need set luismodelattribute properties in code before creating luisservice:

var luissettings = new luismodelattribute(configurationmanager.appsettings["luisappid"], configurationmanager.appsettings["luisappkey"]); luissettings.log = true; luissettings.spellcheck = true; luissettings.log = true; var luisservice = new luisservice(luissettings); context.call(new luisdialog(luisservice), resumeafterdialog); 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -