我正在使用节点js,我想调用luis对话框(" morningUpdate")来自 一般对话框("工作")
dialog.matches('morningUpdate',[
function (session, args, next) {
}
]);
bot.dialog('/work', [
function (session, args) {
//how to call here "morningUpdate" dialog
}
]);
我们如何才能实现这一目标。
答案 0 :(得分:1)
答案 1 :(得分:0)
这是实际答案
import fileinput
text = fileinput.input(files=('default.txt'))
text2 = fileinput.input(files=("temp.txt"))
mp = str(raw_input("enter the first string: "))
pn = str(raw_input("enter the second string"))
fileN = mp + "_autogen_ST.txt"
f = open("temp.txt","w")
fi = open(fileN,"w")
#for line in text:
# print >>f, (line.replace("*mp*", mp))
for line in text:
print >> f, (line.replace("*pn*", pn))
for line in text2:
print >> fi, (line.replace("*mp*", mp))