Skip to content

Commit

Permalink
simple chinese sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyko Karadzhov authored and igatanasov committed Mar 29, 2018
1 parent cdcf7bb commit bb900e6
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 0 deletions.
92 changes: 92 additions & 0 deletions Blank/zh/cognitive-flow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"commands": {
"NEXT-PAGE": [
"下一个5"
]
},
"settings": {
"invalid-replies": [
"我不确定我是否理解你所说的。"
],
"general-failure": [
"目前我们遇到技术困难。"
],
"previous-conversation-messages": [
"我现在要回到{{ conversationDisplayName }}。"
]
},
"conversations": {
"welcome": {
"type": "support",
"steps": [{
"type": "message",
"messages": [
"这是您的聊天机器人欢迎的对话。"
]
},
{
"type": "conversation",
"conversation": "help",
"conditions": ["{{$not ($has conversation) }}"]
}
]
},
"help": {
"type": "support",
"steps": [{
"type": "message",
"messages": [
[
"如果您遇到问题,可以通过键入'restart'重新启动对话,",
"这是我能为你做的事情:"
]
],
"display": {
"type": "quick-reply",
"data": [
"对话1",
"会话2"
]
}
}]
},
"restart": {
"type": "support",
"steps": [{
"type": "message",
"messages": [
"你的谈话重新开始。"
]
},
{
"type": "conversation",
"conversation": "welcome"
}
]
},
"conversationOne": {
"type": "goal",
"display-name": "对话1",
"steps": [{
"type": "message",
"messages": [
[
"这是对话1"
]
]
}]
},
"conversationTwo": {
"type": "goal",
"display-name": "会话2",
"steps": [{
"type": "message",
"messages": [
[
"这是对话2"
]
]
}]
}
}
}
43 changes: 43 additions & 0 deletions Blank/zh/tests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"scenarios": [
{
"it": "introduces itself and enters into a conversation",
"steps": [
{
"user": {
"text": ""
},
"bot": [
[
{
"text": "这是您的聊天机器人欢迎的对话。"
},
{
"text": "如果您遇到问题,可以通过键入'restart'重新启动对话,"
},
{
"text": "这是我能为你做的事情:",
"quickReplies": [
"对话1",
"会话2"
]
}
]
]
},
{
"user": {
"text": "对话1"
},
"bot": [
[
{
"text": "这是对话1"
}
]
]
}
]
}
]
}
59 changes: 59 additions & 0 deletions Blank/zh/training.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"entity-definitions": [{
"name": "Conversation",
"lookup-strategy": "trait",
"data": [{
"value": "conversationOne",
"expressions": [
"对话1"
],
"metadata": ""
},
{
"value": "conversationTwo",
"expressions": [
"会话2"
],
"metadata": ""
},
{
"value": "restart",
"expressions": [
"restart",
"重新开始"
]
},
{
"value": "help",
"expressions": [
"Help",
"帮帮我"
]
}
]
},
{
"name": "SmallTalk",
"lookup-strategy": "QnA",
"data": [{
"value": "goodbye",
"expressions": [
"再见"
],
"answers": [
"再见"
]
},
{
"value": "thanks",
"expressions": [
"谢谢"
],
"answers": [
"别客气"
]
}
]
}
]
}

0 comments on commit bb900e6

Please sign in to comment.