Skip to content

Commit

Permalink
Merge pull request #89 from mbektchiev/CHAT-1412-thai-support
Browse files Browse the repository at this point in the history
[CHAT-1412]: Add Thai to `Empty` sample
  • Loading branch information
Mitko-Kerezov authored Oct 9, 2020
2 parents a7cfa97 + 42b46e3 commit c36c3f7
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 0 deletions.
70 changes: 70 additions & 0 deletions Empty/th/cognitive-flow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"conversations": {
"welcome": {
"type": "support",
"steps": [
{
"type": "message",
"messages": [
"นี่คือข้อความต้อนรับสำหรับ Chatbot"
]
},
{
"type": "conversation",
"conversation": "help",
"conditions": [
"{{$not ($has conversation) }}"
]
}
]
},
"help": {
"type": "support",
"steps": [
{
"type": "message",
"messages": [
[
"หากพบปัญหาการใช้งาน คุณสามารถเริ่มต้นบทสนทนาใหม่ได้ โดยพิมพ์ว่า 'เริ่มใหม่'"
]
]
}
]
},
"restart": {
"type": "support",
"steps": [
{
"type": "message",
"messages": [
"บทสนทนาของคุณได้เริ่มต้นใหม่"
]
},
{
"type": "conversation",
"conversation": "welcome"
}
]
}
},
"settings": {
"invalid-replies": [
"ฉันไม่เข้าใจสิ่งที่คุณพูด"
],
"general-failure": [
"เรากำลังประสบปัญหาทางเทคนิคขณะนี้"
],
"previous-conversation-messages": [
"ฉันกำลังกลับไปที่ {{ conversationDisplayName }}"
]
},
"commands": {
"NEXT-PAGE": [
"ถัดไป 5"
],
"RESTART": [
"เริ่มต้นใหม่",
"restart"
]
}
}
24 changes: 24 additions & 0 deletions Empty/th/tests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"scenarios": [
{
"it": "introduces itself and enters into a conversation",
"steps": [
{
"user": {
"text": "สวัสดี"
},
"bot": [
[
{
"text": "นี่คือข้อความต้อนรับสำหรับ Chatbot"
},
{
"text": "หากพบปัญหาการใช้งาน คุณสามารถเริ่มต้นบทสนทนาใหม่ได้ โดยพิมพ์ว่า 'เริ่มใหม่'"
}
]
]
}
]
}
]
}
96 changes: 96 additions & 0 deletions Empty/th/training.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"entity-definitions": [
{
"name": "Conversation",
"lookup-strategy": "trait",
"data": [
{
"value": "restart",
"expressions": [
"เริ่มใหม่",
"เริ่มใหม่ได้ไหม",
"โปรดเริ่มใหม่",
"เริ่มใหม่อีกครั้ง",
"เริ่มต้นบทสนทนาใหม่",
"ฉันต้องการเริ่มใหม่",
"เราสามารถเริ่มบทสนทนาใหม่ได้ไหม",
"ฉันต้องการเริ่มบทสนทนาใหม่"
]
},
{
"value": "help",
"expressions": [
"รายการความช่วยเหลือ",
"ไม่แน่ใจว่าต้องทำอะไร",
"คุณมีประโยชน์หรือเปล่า",
"คุณถูกสร้างมาเพื่ออะไร",
"วิธีทำ",
"คุณสามารถทำอะไรได้บ้าง",
"ต้องการคำแนะนำ",
"มีตัวเลือกอะไรบ้าง",
"ช่วยฉัน",
"ฉันรู้สึกสับสน",
"คุณฉลาดหรือเปล่า",
"อะไรทำให้คุณพิเศษ",
"คำสั่ง",
"ฉันงง",
"ฉันไม่รู้ต้องทำอย่างไร ฉันต้องการความช่วยเหลือ",
"หยุด",
"เมนู"
]
}
]
},
{
"name": "SmallTalk",
"lookup-strategy": "QnA",
"data": [
{
"value": "goodbye",
"expressions": [
"ลาก่อน",
"โอเค ลาก่อน",
"เยี่ยม ลาก่อน",
"ขอให้วันนี้เป็นวันที่ดี",
"ขอให้เป็นวันหยุดที่ดี",
"ไว้คุยกันครั้งหน้า",
"ฉันอยู่บ้างนอก",
"ฉันต้องไปแล้ว",
"ฉันต้องไปแล้ว ขอบคุณ",
"ไว้พบกันใหม่",
"แล้วพบกันใหม่",
"เยี่ยม แล้วพบกันใหม่",
"โชคดี",
"ด้วยความเคารพ",
"ฝันดี"
],
"answers": [
"แล้วพบกันใหม่",
"ลาก่อน"
]
},
{
"value": "thanks",
"expressions": [
"ขอบคุณ",
"ขอบคุณเช่นกัน",
"ขอบคุณ bot",
"โอเค ขอบคุณ",
"เยี่ยม ขอบคุณ",
"ขอบคุณสำหรับความช่วยเหลือ",
"ขอบคุณอีกครั้ง",
"ขอบคุณมาก",
"ฉันรู้ ขอบคุณ",
"ขอบคุณที่แสดงสิ่งนั้น",
"คุณเยี่ยมจริง ๆ",
"คุณช่วยฉันไว้"
],
"answers": [
"ด้วยความยินดี",
"เป็นหน้าที่ของฉันอยู่แล้ว"
]
}
]
}
]
}

0 comments on commit c36c3f7

Please sign in to comment.