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
Post a Comment