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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -