Skip to content
Permalink
Browse files

update readme

  • Loading branch information...
HoangThiNhung committed Feb 9, 2018
1 parent b58a066 commit bfbcb845e7ed7eff8976a06b75224b083f9e4e4d
Showing with 12 additions and 10 deletions.
  1. +7 −7 chatbot-predict.ipynb
  2. +5 −3 readme.md
@@ -115,7 +115,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:tensorflow:Restoring parameters from /home/hoang.thi.nhung/workspace/machineLearning/Untitled Folder/model.tflearn\n"
"INFO:tensorflow:Restoring parameters from /home/hoang.thi.nhung/workspace/machineLearning/Untitled Folder/models/model.tflearn\n"
]
}
],
@@ -168,7 +168,7 @@
{
"data": {
"text/plain": [
"[('opentoday', 0.5232327)]"
"[('opentoday', 0.93861651)]"
]
},
"execution_count": 8,
@@ -189,7 +189,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Our hours are 9am-9pm every day\n"
"We're open every day from 9am-9pm\n"
]
}
],
@@ -223,7 +223,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"See you later, thanks for visiting\n"
"Have a nice day\n"
]
}
],
@@ -256,7 +256,7 @@
{
"data": {
"text/plain": [
"[('greeting', 0.8708275)]"
"[('greeting', 0.87227839)]"
]
},
"execution_count": 13,
@@ -277,7 +277,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Good to see you again\n"
"Hi there, how can I help?\n"
]
}
],
@@ -294,7 +294,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Thankyou for ordering, Please wait me some minutes.\n"
"Can I help you? This is menu. Please ask me if you have any question.\n"
]
}
],
@@ -6,9 +6,11 @@ python3 training.py
```
#### Predict
```
from predict import predict, classify
from predict import response, classify
predict('text')
>>> response('is your shop open today?')
We're open every day from 9am-9pm
classify('text')
>>> classify('is your shop open today?')
[('opentoday', 0.93861651)]
```

0 comments on commit bfbcb84

Please sign in to comment.
You can’t perform that action at this time.