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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -