Skip to content

Commit

Permalink
Add more training data.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabergma committed Jul 5, 2019
1 parent c4b605e commit 2978ad5
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 8 deletions.
30 changes: 30 additions & 0 deletions data/nlu.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,23 @@
- good morning
- good afternoon
- HI
- Hello?

## intent:help
- What can you do?
- What should I ask you?
- how can you help me
- I need help
- i need help

## intent:out_of_scope
- Can I transfer money?
- Can I open a bank account?
- Can you help me with transferring money?
- I want to open a bank account
- I need a new bank account
- i want to transfer money
- I want to transfer [money](attribute)

## intent:query_attribute
- What is the [gender](attribute) of [Hans Maier](person)?
Expand Down Expand Up @@ -238,6 +255,11 @@
- what is the [balance](attribute) of the [first](mention) one
- how much [money](attribute) do i have on my account
- how much [money](attribute) do i have on the [second](mention) one
- [How much](attribute) do I have in my [savings](account_type) account?
- How much [money](attribute) is in my [savings](account_type) account?
- What is my [balance](attribute) for [savings](account_type)?
- How much [money](attribute) do I have in my [credit](account_type) account?
- What is my [savings](account_type) account [balance](attribute)?

## intent:query_entities
- What options for [banks](entity_type) do I have?
Expand Down Expand Up @@ -285,11 +307,19 @@
- can you list some [transactions](entity_type) of the [second](mention) one
- what are my [transactions](entity_type) on [DE82444435329779109646](account)
- what are my recent [transaction](entity_type) on [food](category)
- i want to check on my [accounts](entity_type)
- what are my [banking](entity_type) options?>
- what are my [banking](entity_type) options?
- What are my [accounts](entity_type)?
- What [accounts](entity_type) do I have?
- what are my recent [transactions](entity_type) on the [first](mention) one

## intent:resolve_entity
- [1](mention)
- [3](mention)
- [2](mention)
- [4](mention)
- [5](mention)
- The [first](mention) one
- The [last](mention) one
- The [second](mention) one
Expand Down
116 changes: 108 additions & 8 deletions data/stories.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## story_greet
## greet
* greet
- utter_greet

## story_goodbye
## goodbye
* bye
- utter_goodbye

## query_entities
## query entities
* query_entities
- action_query_entities

## request_info
## query attribute
* query_attribute
- action_query_attribute
- slot{"mention": null}
Expand All @@ -21,8 +21,16 @@
- action_resolve_entity
- slot{"mention": null}
- slot{"bank": "N26"}

## out of scope
* out_of_scope
- utter_out_of_scope

## help
* help
- utter_help

## transactions
## happy-path #1
* greet
- utter_greet
* query_entities
Expand All @@ -41,7 +49,7 @@
* bye
- utter_goodbye

## transactions
## happy-path #2
* greet
- utter_greet
* query_entities
Expand All @@ -56,7 +64,7 @@
* bye
- utter_goodbye

## transactions
## happy-path #3
* greet
- utter_greet
* query_attribute
Expand All @@ -66,7 +74,7 @@
* bye
- utter_goodbye

## transactions
## happy-path #4
* greet
- utter_greet
* query_attribute
Expand All @@ -79,3 +87,95 @@
- action_compare_entities
* bye
- utter_goodbye

## happy-path #5
* greet
- utter_greet
* query_entities
- action_query_entities
- slot{"entity_type": "transaction"}
- slot{"entities": []}
- slot{"transaction": ""}
* out_of_scope
- utter_out_of_scope
* query_attribute
- action_query_attribute
- slot{"mention": null}
- slot{"account": "DE89370400440532013000"}
* bye
- utter_goodbye

## happy-path #6
* greet
- utter_greet
* out_of_scope
- utter_out_of_scope
* query_attribute
- action_query_attribute
- slot{"mention": null}
- slot{"person": null}
* query_entities
- action_query_entities
* compare_entities
- action_compare_entities
* out_of_scope
- utter_out_of_scope
* bye
- utter_goodbye

## happy-path #7
* greet
- utter_greet
* query_entities
- action_query_entities
- slot{"entity_type": "account"}
- slot{"entities": []}
- slot{"account": ""}
* query_attribute
- action_query_attribute
- slot{"mention": null}
- slot{"transaction": "123"}
* out_of_scope
- utter_out_of_scope
* bye
- utter_goodbye

## happy-path #8
* greet
- utter_greet
* query_entities
- action_query_entities
- slot{"entity_type": "transaction"}
- slot{"entities": []}
- slot{"transaction": ""}
* out_of_scope
- utter_out_of_scope
* help
- utter_help
* query_attribute
- action_query_attribute
- slot{"mention": null}
- slot{"account": "DE89370400440532013000"}
* query_attribute
- action_query_attribute
* bye
- utter_goodbye

## happy-path #9
* greet
- utter_greet
* out_of_scope
- utter_out_of_scope
* help
- utter_help
* query_entities
- action_query_entities
- slot{"entity_type": "transaction"}
- slot{"entities": []}
- slot{"transaction": ""}
* query_attribute
- action_query_attribute
- slot{"mention": null}
- slot{"account": "DE89370400440532013000"}
* bye
- utter_goodbye
10 changes: 10 additions & 0 deletions domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ intents:
- compare_entities
- deny
- greet
- help
- out_of_scope
- query_attribute
- query_entities
- resolve_entity
Expand Down Expand Up @@ -75,12 +77,20 @@ templates:
utter_rephrase:
- text: Can you please rephrase?
- text: Sorry, I didn't get that. Can you rephrase?
utter_out_of_scope:
- text: Sorry, I cannot help you with that.
- text: I'm not able to help you with that.
utter_help:
- text: I can tell you some facts about different banks. I can answer some questions
about your accounts. And I can show you your recent transactions.
actions:
- action_compare_entities
- action_query_attribute
- action_query_entities
- action_resolve_entity
- utter_goodbye
- utter_greet
- utter_help
- utter_ok
- utter_out_of_scope
- utter_rephrase

0 comments on commit 2978ad5

Please sign in to comment.