Skip to content

Commit

Permalink
Update training data.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabergma committed Jun 26, 2019
1 parent c8421a9 commit ebc4b75
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ pip install -r requirements.txt

### Setting up the Graph Database

Our knowledge base is represented by a graph database.
In this repository [Grakn](https://grakn.ai/) is used as a graph database.
Please check the [installation instruction](https://dev.grakn.ai/docs/running-grakn/install-and-run)
for Grakn in order to install it.
of Grakn in order to install it.

Once you installed Grakn, you need to start the Grakn server by executing
```bash
grakn server start
```
You can stop the server by executing `grakn server stop`.
You can stop the server by running `grakn server stop`.

In order to load data into the graph database you need to follow the following steps:
In order to get some data into the graph database you need to execute the following steps:
1. Create the schema by executing
```bash
graql console --keyspace banking --file knowledge_base/schema.gql
Expand All @@ -35,7 +36,7 @@ In order to load data into the graph database you need to follow the following s
Grakn recommends you to write a `migrate.py` script
(see [migration-python](https://dev.grakn.ai/docs/examples/phone-calls-migration-python))
to load data from csv files into your graph database.
Our migration scripts loads the data located in `knowledge_base/data` into the keyspace `banking`.
Our migration script loads the data located in `knowledge_base/data` into the keyspace `banking`.

The graph database is set up and ready to be used.

Expand Down
1 change: 0 additions & 1 deletion actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def run(self, dispatcher, tracker, domain):

if entity_type is None:
dispatcher.utter_template("utter_rephrase", tracker)
return [SlotSet(entity_type, None)]

# get name of entity and attribute of interest
name = get_entity_name(tracker, entity_type)
Expand Down
2 changes: 1 addition & 1 deletion data/nlu.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
- can you list my [accounts](entity_type), please?
- what [cards](entity_type) do i have?
- tell me about [accounts](entity_type)
- I want to know different [banking ](entity_type:banking)options
- I want to know different [banking](entity_type) options
- what [accounts](entity_type) do I have?
- tell me about my [accounts](entity_type)
- what [banks](entity_type) do you have?
Expand Down
6 changes: 5 additions & 1 deletion data/stories.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
## request_info
* query_attribute
- action_query_attribute
- slot{"card": null}

## resolve entity
* resolve_entity
Expand All @@ -23,8 +24,9 @@
- utter_greet
* query_entities
- action_query_entities
- slot{"entity_type": "transactions"}
- slot{"entity_type": "transaction"}
- slot{"entities": []}
- slot{"transaction": ""}
* compare_entities
- action_compare_entities
* query_attribute
Expand All @@ -42,6 +44,7 @@
- action_query_entities
- slot{"entity_type": "account"}
- slot{"entities": []}
- slot{"account": ""}
* query_attribute
- action_query_attribute
- slot{"account": null}
Expand All @@ -62,6 +65,7 @@
- utter_greet
* query_attribute
- action_query_attribute
- slot{"transaction": null}
* query_entities
- action_query_entities
* compare_entities
Expand Down
2 changes: 2 additions & 0 deletions knowledge_base/data/entity_type_lookup.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ persons,person
person,person
banks,bank
bank,bank
banking,bank
banking options,bank
transactions,transaction
transaction,transaction
accounts,account
Expand Down

0 comments on commit ebc4b75

Please sign in to comment.