-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fae92e
commit 0d7c254
Showing
5 changed files
with
360 additions
and
283 deletions.
There are no files selected for viewing
431 changes: 180 additions & 251 deletions
431
.ipynb_checkpoints/Bot-with emotion detection-checkpoint.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% block %} | ||
{% client %}((I('| a)m|my name is) )?(.*){% endclient %} | ||
{% prev %}(.*)Can you please tell me your name{% endprev %} | ||
{% response %}Thank you {name:%4}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}Do you remember my name{% endclient %} | ||
{% response %}{% if {name} %}Yes I do {name}{% else %}No,{% chat what is my name %}{% endif %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(.*)(feeling|i feel|my feeling)(.*){% endclient %} | ||
{% response %}{% call emo:%2 %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(Do you know about|who is|tell me about)(.*){% endclient %} | ||
{% response %}{% call whoIs:%2 %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(let's get started){% endclient %} | ||
{% response %}Hey, {% cap {% call identifyu:%2 %} %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(.*)(rough day)(.*){% endclient %} | ||
{% response %}Would you like to talk about it?{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}Yes|yes{% endclient %} | ||
{% prev %}Would you like to talk about it?{% endprev %} | ||
{% response %}Go ahead, tell me what happend.{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}No|no|(.*)later(.*){% endclient %} | ||
{% prev %}Would you like to talk about it?{% endprev %} | ||
{% response %}Okay, can I help you in any other way?{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}{% endclient %} | ||
{% prev %}Go ahead, tell me what happend.{% endprev %} | ||
{% response %}{% call whathappen:%2 %}{% endresponse %} | ||
{% endblock %} | ||
|
||
|
||
|
||
{ mood : sad } | ||
{ reason : bad time in two and a half men show } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name Pratik | ||
{% block %} | ||
{% client %}((I('| a)m|my name is) )?(.*){% endclient %} | ||
{% prev %}(.*)Can you please tell me your name{% endprev %} | ||
{% response %}Thank you {name:%4}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}Do you remember my name{% endclient %} | ||
{% response %}{% if {name} %}Yes I do {name}{% else %}No,{% chat what is my name %}{% endif %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(.*)(feeling|i feel|my feeling)(.*){% endclient %} | ||
{% response %}{% call emo:%2 %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(Do you know about|who is|tell me about)(.*){% endclient %} | ||
{% response %}{% call whoIs:%2 %}{% endresponse %} | ||
{% endblock %} | ||
|
||
{% block %} | ||
{% client %}(let's get started){% endclient %} | ||
{% response %}Hey, {% call identifyu:%2 %}{% endresponse %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
appended textappended text aaa |