samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
599 stars 159 forks source link

still after training not learned some dialogues #302

Closed saurabhbidwai closed 6 years ago

saurabhbidwai commented 6 years ago

0.9.4 windows 10 local chorme

2018-08-12

still after training not learned some dialogues

wrathagom commented 6 years ago

@saurabhbidwai I'm a little confused between this issue and #301 exactly the state of your system and agent. There are a lot of errors on the other issue that suggest something wasn't able to be trained. Which if that is the case could cause problems here as well.

For starters looking at your screenshots I can tell that sausage pizza and pineapple pizza are labeled correctly as the highlighted entity area includes the space, which it shouldn't.

So to get on the same page let's try to fix things in this order:

  1. docker-compose down This should stop everything that is running and remove the containers
  2. docker-compose up -d To restart everything
  3. Delete and re-create the two examples I mentioned above.
  4. Click update to re-train (keep in mind on the version you are on you cannot leave the page until training is completed).
  5. Try your example again.

If things aren't working correctly. Please include the logs docker-compose logs in your response and the /agent/{id}/parse results for cheese.

saurabhbidwai commented 6 years ago

things are still the same

Attaching to articulate-094_redis_1, articulate-094_api_1,
articulate-094_rasa_1, articulate-094_duckling_1, articulate-094_ui_1
redis_1 | 1:C 12 Aug 17:07:17.707 # oO0OoO0OoO0Oo Redis is starting
oO0OoO0OoO0Oo redis_1 | 1:C 12 Aug 17:07:17.760 # Redis version=4.0.6,
bits=64, commit=00000000, modified=0, pid=1, just started redis_1 | 1:C 12
Aug 17:07:17.760 # Configuration loaded redis_1 | 1:M 12 Aug 17:07:17.847 *
Running mode=standalone, port=6379. redis_1 | 1:M 12 Aug 17:07:17.847 #
WARNING: The TCP backlog setting of 511 cannot be enforced because
/proc/sys/net/core/somaxconn is set to the lower value of 128. redis_1 |
1:M 12 Aug 17:07:17.847 # Server initialized redis_1 | 1:M 12 Aug
17:07:17.847 # WARNING you have Transparent Huge Pages (THP) support
enabled in your kernel. This will create latency and memory usage issues
with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled. redis_1 | 1:M 12 Aug 17:07:18.036 * DB
loaded from append only file: 0.189 seconds redis_1 | 1:M 12 Aug
17:07:18.036 * Ready to accept connections redis_1 | 1:signal-handler
(1534094458) Received SIGTERM scheduling shutdown... redis_1 | 1:M 12 Aug
17:20:58.328 # User requested shutdown... redis_1 | 1:M 12 Aug 17:20:58.490
* Calling fsync() on the AOF file. redis_1 | 1:M 12 Aug 17:20:58.525 #
Redis is now ready to exit, bye bye... rasa_1 | 2018-08-12 17:07:57+0000
[-] Log opened. rasa_1 | 2018-08-12 17:07:57+0000 [-] Site starting on 5000
rasa_1 | 2018-08-12 17:07:57+0000 [-] Starting factory
<twisted.web.server.Site instance at 0x7fc863d8da70> rasa_1 | 2018-08-12
17:09:36+0000 [-] 2018-08-12 17:09:36 WARNING
rasa_nlu.extractors.crf_entity_extractor - Misaligned entity annotation in
sentence 'cheese with macroni'. Make sure the start and end values of the
annotated training examples end at token boundaries (e.g. don't include
trailing whitespaces). rasa_1 | 2018-08-12 17:09:36+0000 [-] 2018-08-12
17:09:36 WARNING rasa_nlu.extractors.crf_entity_extractor - Misaligned
entity annotation in sentence 'i would like to have cheese pizza'. Make
sure the start and end values of the annotated training examples end at
token boundaries (e.g. don't include trailing whitespaces). rasa_1 |
2018-08-12 17:09:37+0000 [-] Fitting 2 folds for each of 6 candidates,
totalling 12 fits rasa_1 | 2018-08-12 17:09:37+0000 [-]
[Parallel(n_jobs=1)]: Done 12 out of 12 | elapsed: 0.1s finished rasa_1 |
2018-08-12 17:09:40+0000 [-] "172.18.0.4" - - [12/Aug/2018:17:09:39 +0000]
"POST
/train?project=Pizza%20Bot&model=Order%20Receiver_7d16a7ec-a828-49e7-f0f7-3589281777a6
HTTP/1.1" 200 86 "-" "-" rasa_1 | 2018-08-12 17:09:40+0000 [-] "172.18.0.4"
- - [12/Aug/2018:17:09:40 +0000] "DELETE
/models?project=Pizza%20Bot&model=Order%20Receiver_cd0a78a2-798c-1acc-1196-671232f9e193
HTTP/1.1" 200 53 "-" "-" rasa_1 | 2018-08-12 17:12:49+0000 [-] 2018-08-12
17:12:49 WARNING rasa_nlu.extractors.crf_entity_extractor - Misaligned
entity annotation in sentence 'cheese with macroni'. Make sure the start
and end values of the annotated training examples end at token boundaries
(e.g. don't include trailing whitespaces). rasa_1 | 2018-08-12
17:12:50+0000 [-] Fitting 2 folds for each of 6 candidates, totalling 12
fits rasa_1 | 2018-08-12 17:12:50+0000 [-] [Parallel(n_jobs=1)]: Done 12
out of 12 | elapsed: 0.2s finished rasa_1 | 2018-08-12 17:12:53+0000 [-]
"172.18.0.4" - - [12/Aug/2018:17:12:53 +0000] "POST
/train?project=Pizza%20Bot&model=Order%20Receiver_2740d2a9-cbda-5f62-bcd3-0dd7d9da0bf3
HTTP/1.1" 200 86 "-" "-" rasa_1 | 2018-08-12 17:12:55+0000 [-] "172.18.0.4"
- - [12/Aug/2018:17:12:54 +0000] "DELETE
/models?project=Pizza%20Bot&model=Order%20Receiver_7d16a7ec-a828-49e7-f0f7-3589281777a6
HTTP/1.1" 200 53 "-" "-" rasa_1 | 2018-08-12 17:15:59+0000 [-]
/usr/lib/python2.7/site-packages/sklearn/preprocessing/label.py:151:
exceptions.DeprecationWarning: The truth value of an empty array is
ambiguous. Returning False, but in future this will result in an error. Use
`array.size > 0` to check that an array is not empty. rasa_1 | 2018-08-12
17:16:00+0000 [-] "172.18.0.4" - - [12/Aug/2018:17:15:59 +0000] "POST
/parse HTTP/1.1" 200 563 "-" "-" rasa_1 | 2018-08-12 17:17:59+0000 [-]
/usr/lib/python2.7/site-packages/sklearn/preprocessing/label.py:151:
exceptions.DeprecationWarning: The truth value of an empty array is
ambiguous. Returning False, but in future this will result in an error. Use
`array.size > 0` to check that an array is not empty. rasa_1 | 2018-08-12
17:17:59+0000 [-] "172.18.0.4" - - [12/Aug/2018:17:17:58 +0000] "POST
/parse HTTP/1.1" 200 569 "-" "-" rasa_1 | 2018-08-12 17:18:04+0000 [-]
/usr/lib/python2.7/site-packages/sklearn/preprocessing/label.py:151:
exceptions.DeprecationWarning: The truth value of an empty array is
ambiguous. Returning False, but in future this will result in an error. Use
`array.size > 0` to check that an array is not empty. rasa_1 | 2018-08-12
17:18:05+0000 [-] "172.18.0.4" - - [12/Aug/2018:17:18:04 +0000] "POST
/parse HTTP/1.1" 200 565 "-" "-" rasa_1 | 2018-08-12 17:19:53+0000 [-]
/usr/lib/python2.7/site-packages/sklearn/preprocessing/label.py:151:
exceptions.DeprecationWarning: The truth value of an empty array is
ambiguous. Returning False, but in future this will result in an error. Use
`array.size > 0` to check that an array is not empty. rasa_1 | 2018-08-12
17:19:53+0000 [-] "172.18.0.4" - - [12/Aug/2018:17:19:52 +0000] "POST
/parse HTTP/1.1" 200 565 "-" "-" rasa_1 | 2018-08-12 17:20:58+0000 [-]
Received SIGTERM, shutting down. rasa_1 | 2018-08-12 17:20:58+0000
[twisted.web.server.Site] (TCP Port 5000 Closed) rasa_1 | 2018-08-12
17:20:58+0000 [-] Stopping factory <twisted.web.server.Site instance at
0x7fc863d8da70> rasa_1 | 2018-08-12 17:20:58+0000 [-] Main loop terminated.
api_1 | Server running at: http://92043938caef:7500 api_1 | Explorer
running at: http://92043938caef:7500/documentation duckling_1 | no port
specified, defaulting to port 8000 duckling_1 | Listening on
http://0.0.0.0:8000 ui_1 | yarn run v1.7.0 ui_1 | $ cross-env
NODE_ENV=development node server ui_1 | Server started ! ✓ ui_1 | ui_1 |
Access URLs: ui_1 | ----------------------------------- ui_1 | Localhost:
http://localhost:3000 ui_1 | LAN: http://172.18.0.3:3000 ui_1 |
----------------------------------- ui_1 | Press CTRL-C to stop ui_1 | ui_1
| webpack built 3ba283bc62ad01ef2b02 in 27393ms
{ "id": 327, "result": { "document": "cheese", "time_stamp":
"2018-08-12T17:19:53.853Z", "results": [ { "domain": "Order Receiver", "
project": "Pizza Bot", "entities": [], "intent": { "confidence":
0.9453376325515643, "name": "toppings" }, "model": "Order
Receiver_2740d2a9-cbda-5f62-bcd3-0dd7d9da0bf3", "intent_ranking": [ { "
confidence": 0.9453376325515643, "name": "toppings" }, { "confidence":
0.02849341574978712, "name": "thanks" }, { "confidence":
0.014588781281523423, "name": "address" }, { "confidence":
0.011580170417125335, "name": "greeting" } ], "elapsed_time_ms": 40.8852 }
], "maximum_intent_score": 0.9453376325515643, "total_elapsed_time_ms":
341.2255 } }

On Sun, Aug 12, 2018 at 10:32 PM Caleb M. Keller notifications@github.com wrote:

@saurabhbidwai https://github.com/saurabhbidwai I'm a little confused between this issue and #301 https://github.com/samtecspg/articulate/issues/301 exactly the state of your system and agent. There are a lot of errors on the other issue that suggest something wasn't able to be trained. Which if that is the case could cause problems here as well.

For starters looking at your screenshots I can tell that sausage pizza and pineapple pizza are labeled correctly as the highlighted entity area includes the space, which it shouldn't.

So to get on the same page let's try to fix things in this order:

  1. docker-compose down This should stop everything that is running and remove the containers
  2. docker-compose up -d To restart everything
  3. Delete and re-create the two examples I mentioned above.
  4. Click update to re-train (keep in mind on the version you are on you cannot leave the page until training is completed).
  5. Try your example again.

If things aren't working correctly. Please include the logs docker-compose logs in your response and the /agent/{id}/parse results for cheese.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/samtecspg/articulate/issues/302#issuecomment-412356581, or mute the thread https://github.com/notifications/unsubscribe-auth/AVYJOtYTlM5QNZUfFKG5WwnoLJzNc5jWks5uQF-RgaJpZM4V5j84 .

wrathagom commented 6 years ago

It stills looks like your training data has mis-aligned entities.

Misaligned entity annotation in
sentence 'cheese with macroni'. Make sure the start and end values of the
annotated training examples end at token boundaries (e.g. don't include
trailing whitespaces).

Can you export your agent and provide it to us. We'll troubleshoot and provide feedback.

You can export your agent by going to http://localhost:7500/documentation and then navigating under agent > export.

saurabhbidwai commented 6 years ago

{ "language": "en", "timezone": "UTC", "agentName": "Pizza Bot", "useWebhook": false, "description": "order your pizza", "extraTrainingData": false, " fallbackResponses": [ "Sorry can you rephrase that?", "I'm still learning to speak with humans. What you mean?" ], "domainClassifierThreshold": 0.35, "entities": [ { "regex": null, "uiColor": "#3f51b5", "entityName": "Toppings", "examples": [ { "value": "Pepperoni", "synonyms": [ "Pepperoni" ] }, { "value": "Sausage", "synonyms": [ "Sausage" ] }, { "value": "Ham", " synonyms": [ "Ham" ] }, { "value": "Pineapple", "synonyms": [ "Pineapple" ] }, { "value": "cheese", "synonyms": [ "cheese" ] }, { "value": "macroni", " synonyms": [ "macroni" ] } ] } ], "domains": [ { "model": "2740d2a9-cbda-5f62-bcd3-0dd7d9da0bf3", "enabled": true, "domainName": "Order Receiver", "lastTraining": "Sun Aug 12 2018 17:12:55 GMT+0000 (UTC)", " intentThreshold": 0.5, "extraTrainingData": false, "intents": [ { " intentName": "greeting", "useWebhook": false, "examples": [ { "userSays": "hola", "entities": [] }, { "userSays": "hey", "entities": [] }, { "userSays": "hello", "entities": [] }, { "entities": [], "userSays": "hi" } ], "scenario": { "slots": [], "scenarioName": "greeting", "intentResponses": [ "Hello, My name is Myzza, How can I help you?" ] } }, { "intentName": "thanks", " useWebhook": false, "examples": [ { "userSays": "shukran", "entities": [] }, { "userSays": "gracious", "entities": [] }, { "userSays": "great", " entities": [] }, { "entities": [], "userSays": "ok" }, { "userSays": "okay", "entities": [] }, { "userSays": "excellent", "entities": [] } ], "scenario": { "slots": [], "scenarioName": "thanks", "intentResponses": [ "Thank you, Happy to help", "Thank you" ] } }, { "intentName": "address", "useWebhook": false, "examples": [ { "userSays": "9860863729", "entities": [ { "end": 10, "start": 0, "value": "9860863729", "entity": "sys.duckling_phone-number", " extractor": "system" } ] }, { "entities": [], "userSays": "road" }, { " userSays": "society", "entities": [] }, { "entities": [], "userSays": "apartment" }, { "entities": [], "userSays": "inn" }, { "userSays": "villa", "entities": [] }, { "entities": [], "userSays": "square" }, { "entities": [], "userSays": "house" }, { "entities": [], "userSays": "street" } ], " scenario": { "scenarioName": "address", "slots": [ { "entity": "sys.duckling_phone-number", "isList": false, "slotName": "sys.duckling_phone-number", "isRequired": true, "textPrompts": [ "May I know your contact number?" ] } ], "intentResponses": [ "okay, our delivery boy would be there soon" ] } }, { "useWebhook": false, "intentName": "toppings", "examples": [ { "userSays": "i would like to have cheese pizza", "entities": [ { "end": 27, "value": "cheese", "start": 21, "entity": "Toppings" } ] }, { "userSays": "pineapple pizza", "entities": [ { "end": 9, "start": 0, "value": "pineapple", "entity": "Toppings" } ] }, { "userSays": "sausage pizza", "entities": [ { "end": 7, "start": 0, "value": "sausage", "entity": "Toppings" } ] }, { "userSays": "cheese", "entities": [ { "end": 6, "start": 0, "value": "cheese", "entity": "Toppings" } ] }, { "userSays": "sausage", " entities": [ { "end": 7, "value": "sausage", "start": 0, "entity": "Toppings" } ] }, { "userSays": "pineapple", "entities": [ { "end": 9, " start": 0, "value": "pineapple", "entity": "Toppings" } ] }, { "userSays": "macroni", "entities": [ { "end": 7, "value": "macroni", "start": 0, "entity": "Toppings" } ] }, { "userSays": "ham", "entities": [ { "end": 3, "value": "ham", "start": 0, "entity": "Toppings" } ] }, { "userSays": "can i order a pizza?", "entities": [] }, { "userSays": "i would like to have pizza", " entities": [] }, { "userSays": "give me pizza", "entities": [] }, { " userSays": "i want pizza", "entities": [] }, { "userSays": "ham cheese pizza", "entities": [ { "end": 3, "value": "ham", "start": 0, "entity": "Toppings" }, { "end": 10, "start": 4, "value": "cheese", "entity": "Toppings" } ] }, { "userSays": "cheese pizza", "entities": [ { "end": 6, " value": "cheese", "start": 0, "entity": "Toppings" } ] }, { "userSays": "ham pizza", "entities": [ { "end": 3, "start": 0, "value": "ham", "entity": "Toppings" } ] } ], "scenario": { "scenarioName": "toppings", "slots": [ { " entity": "Toppings", "isList": true, "slotName": "Toppings", "isRequired": true, "textPrompts": [ "what kind of toppings would you like? we have ham, cheese, macroni." ] } ], "intentResponses": [ "{{slots.Toppings.value}} pizza will be on its way! may I know your delivery address and contact number?" ] } } ] } ] }

On Mon, Aug 13, 2018 at 6:08 PM Caleb M. Keller notifications@github.com wrote:

It stills looks like your training data has mis-aligned entities.

Misaligned entity annotation in sentence 'cheese with macroni'. Make sure the start and end values of the annotated training examples end at token boundaries (e.g. don't include trailing whitespaces).

Can you export your agent and provide it to us. We'll troubleshoot and provide feedback.

You can export your agent by going to http://localhost:7500/documentation and then navigating under agent > export.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/samtecspg/articulate/issues/302#issuecomment-412503726, or mute the thread https://github.com/notifications/unsubscribe-auth/AVYJOhrDtjiuDktF_E1DiMdlqCvwqTIhks5uQXNNgaJpZM4V5j84 .

wrathagom commented 6 years ago

@saurabhbidwai that came through with multiple JSON errors, can you post it as a regular reply rather than an e-mail reply. E-mail replies don't allow formatting on Github.

wrathagom commented 6 years ago
{
  "language":"en",
  "timezone":"UTC",
  "agentName":"Pizza Bot",
  "useWebhook":false,
  "description":"order your pizza",
  "extraTrainingData":false,
  "fallbackResponses":[
    "Sorry can you rephrase that?",
    "I'm still learning to speak with humans. What you mean?"
  ],
  "domainClassifierThreshold":0.35,
  "entities":[
    {
      "regex":null,
      "uiColor":"#3f51b5",
      "entityName":"Toppings",
      "examples":[
        {
          "value":"Pepperoni",
          "synonyms":[
            "Pepperoni"
          ]
        },
        {
          "value":"Sausage",
          "synonyms":[
            "Sausage"
          ]
        },
        {
          "value":"Ham",
          "synonyms":[
            "Ham"
          ]
        },
        {
          "value":"Pineapple",
          "synonyms":[
            "Pineapple"
          ]
        },
        {
          "value":"cheese",
          "synonyms":[
            "cheese"
          ]
        },
        {
          "value":"macroni",
          "synonyms":[
            "macroni"
          ]
        }
      ]
    }
  ],
  "domains":[
    {
      "model":"2740d2a9-cbda-5f62-bcd3-0dd7d9da0bf3",
      "enabled":true,
      "domainName":"Order Receiver",
      "lastTraining":"Sun Aug 12 2018 17:12:55 GMT+0000 (UTC)",
      "intentThreshold":0.5,
      "extraTrainingData":false,
      "intents":[
        {
          "intentName":"greeting",
          "useWebhook":false,
          "examples":[
            {
              "userSays":"hola",
              "entities":[

              ]
            },
            {
              "userSays":"hey",
              "entities":[

              ]
            },
            {
              "userSays":"hello",
              "entities":[

              ]
            },
            {
              "entities":[

              ],
              "userSays":"hi"
            }
          ],
          "scenario":{
            "slots":[

            ],
            "scenarioName":"greeting",
            "intentResponses":[
              "Hello, My name is Myzza, How can I help you?"
            ]
          }
        },
        {
          "intentName":"thanks",
          "useWebhook":false,
          "examples":[
            {
              "userSays":"shukran",
              "entities":[

              ]
            },
            {
              "userSays":"gracious",
              "entities":[

              ]
            },
            {
              "userSays":"great",
              "entities":[

              ]
            },
            {
              "entities":[

              ],
              "userSays":"ok"
            },
            {
              "userSays":"okay",
              "entities":[

              ]
            },
            {
              "userSays":"excellent",
              "entities":[

              ]
            }
          ],
          "scenario":{
            "slots":[

            ],
            "scenarioName":"thanks",
            "intentResponses":[
              "Thank you, Happy to help",
              "Thank you"
            ]
          }
        },
        {
          "intentName":"address",
          "useWebhook":false,
          "examples":[
            {
              "userSays":"9860863729",
              "entities":[
                {
                  "end":10,
                  "start":0,
                  "value":"9860863729",
                  "entity":"sys.duckling_phone-number",
                  "extractor":"system"
                }
              ]
            },
            {
              "entities":[

              ],
              "userSays":"road"
            },
            {
              "userSays":"society",
              "entities":[

              ]
            },
            {
              "entities":[

              ],
              "userSays":"apartment"
            },
            {
              "entities":[

              ],
              "userSays":"inn"
            },
            {
              "userSays":"villa",
              "entities":[

              ]
            },
            {
              "entities":[

              ],
              "userSays":"square"
            },
            {
              "entities":[

              ],
              "userSays":"house"
            },
            {
              "entities":[

              ],
              "userSays":"street"
            }
          ],
          "scenario":{
            "scenarioName":"address",
            "slots":[
              {
                "entity":"sys.duckling_phone-number",
                "isList":false,
                "slotName":"sys.duckling_phone-number",
                "isRequired":true,
                "textPrompts":[
                  "May I know your contact number?"
                ]
              }
            ],
            "intentResponses":[
              "okay, our delivery boy would be there soon"
            ]
          }
        },
        {
          "useWebhook":false,
          "intentName":"toppings",
          "examples":[
            {
              "userSays":"i would like to have cheese pizza",
              "entities":[
                {
                  "end":27,
                  "value":"cheese",
                  "start":21,
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"pineapple pizza",
              "entities":[
                {
                  "end":9,
                  "start":0,
                  "value":"pineapple",
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"sausage pizza",
              "entities":[
                {
                  "end":7,
                  "start":0,
                  "value":"sausage",
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"cheese",
              "entities":[
                {
                  "end":6,
                  "start":0,
                  "value":"cheese",
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"sausage",
              "entities":[
                {
                  "end":7,
                  "value":"sausage",
                  "start":0,
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"pineapple",
              "entities":[
                {
                  "end":9,
                  "start":0,
                  "value":"pineapple",
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"macroni",
              "entities":[
                {
                  "end":7,
                  "value":"macroni",
                  "start":0,
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"ham",
              "entities":[
                {
                  "end":3,
                  "value":"ham",
                  "start":0,
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"can i order a pizza?",
              "entities":[

              ]
            },
            {
              "userSays":"i would like to have pizza",
              "entities":[

              ]
            },
            {
              "userSays":"give me pizza",
              "entities":[

              ]
            },
            {
              "userSays":"i want pizza",
              "entities":[

              ]
            },
            {
              "userSays":"ham cheese pizza",
              "entities":[
                {
                  "end":3,
                  "value":"ham",
                  "start":0,
                  "entity":"Toppings"
                },
                {
                  "end":10,
                  "start":4,
                  "value":"cheese",
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"cheese pizza",
              "entities":[
                {
                  "end":6,
                  "value":"cheese",
                  "start":0,
                  "entity":"Toppings"
                }
              ]
            },
            {
              "userSays":"ham pizza",
              "entities":[
                {
                  "end":3,
                  "start":0,
                  "value":"ham",
                  "entity":"Toppings"
                }
              ]
            }
          ],
          "scenario":{
            "scenarioName":"toppings",
            "slots":[
              {
                "entity":"Toppings",
                "isList":true,
                "slotName":"Toppings",
                "isRequired":true,
                "textPrompts":[
                  "what kind of toppings would you like? we have ham, cheese, macroni."
                ]
              }
            ],
            "intentResponses":[
              "{{slots.Toppings.value}} pizza will be on its way! may I know your delivery address and contact number?"
            ]
          }
        }
      ]
    }
  ]
}
saurabhbidwai commented 6 years ago

{ "language": "en", "timezone": "UTC", "agentName": "Pizza Bot", "useWebhook": false, "description": "order your pizza", "extraTrainingData": false, "fallbackResponses": [ "Sorry can you rephrase that?", "I'm still learning to speak with humans. What you mean?" ], "domainClassifierThreshold": 0.35, "entities": [ { "regex": null, "uiColor": "#3f51b5", "entityName": "Toppings", "examples": [ { "value": "Pepperoni", "synonyms": [ "Pepperoni" ] }, { "value": "Sausage", "synonyms": [ "Sausage" ] }, { "value": "Ham", "synonyms": [ "Ham" ] }, { "value": "Pineapple", "synonyms": [ "Pineapple" ] }, { "value": "cheese", "synonyms": [ "cheese" ] }, { "value": "macroni", "synonyms": [ "macroni" ] } ] } ], "domains": [ { "model": "2740d2a9-cbda-5f62-bcd3-0dd7d9da0bf3", "enabled": true, "domainName": "Order Receiver", "lastTraining": "Sun Aug 12 2018 17:12:55 GMT+0000 (UTC)", "intentThreshold": 0.5, "extraTrainingData": false, "intents": [ { "intentName": "greeting", "useWebhook": false, "examples": [ { "userSays": "hola", "entities": [] }, { "userSays": "hey", "entities": [] }, { "userSays": "hello", "entities": [] }, { "entities": [], "userSays": "hi" } ], "scenario": { "slots": [], "scenarioName": "greeting", "intentResponses": [ "Hello, My name is Myzza, How can I help you?" ] } }, { "intentName": "thanks", "useWebhook": false, "examples": [ { "userSays": "shukran", "entities": [] }, { "userSays": "gracious", "entities": [] }, { "userSays": "great", "entities": [] }, { "entities": [], "userSays": "ok" }, { "userSays": "okay", "entities": [] }, { "userSays": "excellent", "entities": [] } ], "scenario": { "slots": [], "scenarioName": "thanks", "intentResponses": [ "Thank you, Happy to help", "Thank you" ] } }, { "intentName": "address", "useWebhook": false, "examples": [ { "userSays": "9860863729", "entities": [ { "end": 10, "start": 0, "value": "9860863729", "entity": "sys.duckling_phone-number", "extractor": "system" } ] }, { "entities": [], "userSays": "road" }, { "userSays": "society", "entities": [] }, { "entities": [], "userSays": "apartment" }, { "entities": [], "userSays": "inn" }, { "userSays": "villa", "entities": [] }, { "entities": [], "userSays": "square" }, { "entities": [], "userSays": "house" }, { "entities": [], "userSays": "street" } ], "scenario": { "scenarioName": "address", "slots": [ { "entity": "sys.duckling_phone-number", "isList": false, "slotName": "sys.duckling_phone-number", "isRequired": true, "textPrompts": [ "May I know your contact number?" ] } ], "intentResponses": [ "okay, our delivery boy would be there soon" ] } }, { "useWebhook": false, "intentName": "toppings", "examples": [ { "userSays": "i would like to have cheese pizza", "entities": [ { "end": 27, "value": "cheese", "start": 21, "entity": "Toppings" } ] }, { "userSays": "pineapple pizza", "entities": [ { "end": 9, "start": 0, "value": "pineapple", "entity": "Toppings" } ] }, { "userSays": "sausage pizza", "entities": [ { "end": 7, "start": 0, "value": "sausage", "entity": "Toppings" } ] }, { "userSays": "cheese", "entities": [ { "end": 6, "start": 0, "value": "cheese", "entity": "Toppings" } ] }, { "userSays": "sausage", "entities": [ { "end": 7, "value": "sausage", "start": 0, "entity": "Toppings" } ] }, { "userSays": "pineapple", "entities": [ { "end": 9, "start": 0, "value": "pineapple", "entity": "Toppings" } ] }, { "userSays": "macroni", "entities": [ { "end": 7, "value": "macroni", "start": 0, "entity": "Toppings" } ] }, { "userSays": "ham", "entities": [ { "end": 3, "value": "ham", "start": 0, "entity": "Toppings" } ] }, { "userSays": "can i order a pizza?", "entities": [] }, { "userSays": "i would like to have pizza", "entities": [] }, { "userSays": "give me pizza", "entities": [] }, { "userSays": "i want pizza", "entities": [] }, { "userSays": "ham cheese pizza", "entities": [ { "end": 3, "value": "ham", "start": 0, "entity": "Toppings" }, { "end": 10, "start": 4, "value": "cheese", "entity": "Toppings" } ] }, { "userSays": "cheese pizza", "entities": [ { "end": 6, "value": "cheese", "start": 0, "entity": "Toppings" } ] }, { "userSays": "ham pizza", "entities": [ { "end": 3, "start": 0, "value": "ham", "entity": "Toppings" } ] } ], "scenario": { "scenarioName": "toppings", "slots": [ { "entity": "Toppings", "isList": true, "slotName": "Toppings", "isRequired": true, "textPrompts": [ "what kind of toppings would you like? we have ham, cheese, macroni." ] } ], "intentResponses": [ "{{slots.Toppings.value}} pizza will be on its way! may I know your delivery address and contact number?" ] } } ] } ] }

saurabhbidwai commented 6 years ago

shall I import the json which u just posted? @wrathagom

wrathagom commented 6 years ago

This is working fine for me. My only guess is that your agent isn't getting trained for some reason. That may be an out of memory problem. Or you're not staying on the page while it finished.

image

I would recommend upgrading to our latest release as it has better feedback on the failure/success of the training process.

wrathagom commented 6 years ago

Yes it may be worth trying to import the JSON I posted. Keep in mind you'll need to give it a new name or delete your existing agent.

saurabhbidwai commented 6 years ago

okay, I'll try it right now

saurabhbidwai commented 6 years ago

worked fine!! tnx @wrathagom

wrathagom commented 6 years ago

@saurabhbidwai are both of your issues resolved then?

saurabhbidwai commented 6 years ago

yes