rasa interactive training is failing
See original GitHub issueRasa version:1.0.1
Python version: 3.6.7
Operating system (windows, osx, β¦): ubuntu 16.04
Issue: I am trying to run the interactive training on the latest version of rasa. I
(rasa_15) sfrplindia1@sfrplindia1-OptiPlex-7020:~/chatbot$ rasa interactive -d domain.yml -m models -c config.yml --data data --verbose --endpoints endpoints.yml
2019-05-29 12:17:24 INFO root - Generating grammar tables from /usr/lib/python3.6/lib2to3/Grammar.txt
2019-05-29 12:17:24 INFO root - Generating grammar tables from /usr/lib/python3.6/lib2to3/PatternGrammar.txt
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
* https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.
2019-05-29 12:17:24 WARNING rasa.core.interpreter - No NLU model found. Using RegexInterpreter instead.
2019-05-29 12:17:24.816998: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-05-29 12:17:24.821672: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3591990000 Hz
2019-05-29 12:17:24.822324: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x66de000 executing computations on platform Host. Devices:
2019-05-29 12:17:24.822342: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): <undefined>, <undefined>
Bot loaded. Visualisation at http://localhost:5006/visualization.html.
Type a message and press enter (press 'Ctr-c' to exit).
Processed Story Blocks: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 1804.78it/s, # trackers=1]
? Your input -> HI
? Your NLU model classified '/HI' with intent 'HI' and there are no entities, is this correct? Yes
------
Chat History
# Bot You
βββββββββββββββββββββββββββββββββββββββββ
1 action_listen
βββββββββββββββββββββββββββββββββββββββββ
2 /HI
intent: HI 1.00
Current slots:
date_slot: None, dept: None, doc_slot: None, name: None, requested_slot: None, time: None, time_slot: None
------
2019-05-29 12:17:29 ERROR rasa.core.training.interactive - An exception occurred while recording messages.
Traceback (most recent call last):
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 1349, in record_messages
endpoint, sender_id, finetune, sender_ids, plot_file
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 883, in _predict_till_next_listen
sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 1274, in _plot_trackers
event_sequences[-1], event_sequences, output_file=None, max_history=2
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/visualization.py", line 467, in visualize_neighborhood
else sanitize(message.get("intent", {})).get("name", " ? "),
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/visualization.py", line 364, in sanitize
return re.sub(r"""[&\\\<\>"'%();+]""", "", s)
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
2019-05-29 12:17:29 ERROR asyncio - Task exception was never retrieved
future: <Task finished coro=<_serve_application.<locals>.run_interactive_io() done, defined at /home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py:1391> exception=TypeError('expected string or bytes-like object',)>
Traceback (most recent call last):
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 1399, in run_interactive_io
sender_id=uuid.uuid4().hex,
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 1349, in record_messages
endpoint, sender_id, finetune, sender_ids, plot_file
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 883, in _predict_till_next_listen
sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/interactive.py", line 1274, in _plot_trackers
event_sequences[-1], event_sequences, output_file=None, max_history=2
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/visualization.py", line 467, in visualize_neighborhood
else sanitize(message.get("intent", {})).get("name", " ? "),
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/site-packages/rasa/core/training/visualization.py", line 364, in sanitize
return re.sub(r"""[&\\\<\>"'%();+]""", "", s)
File "/home/sfrplindia1/Work/SantaFe/Raghuram/chatbots/rasa_15/lib/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
Content of configuration file (config.yml):
language: en
pipeline:
- name: WhitespaceTokenizer
- name: CRFEntityExtractor
- name: EntitySynonymMapper
- name: CountVectorsFeaturizer
token_pattern: (?u)\b\w+\b
- name: EmbeddingIntentClassifier
- name: DucklingHTTPExtractor
url: http://localhost:8000
dimensions:
- time
policies:
- name: KerasPolicy
epochs: 100
max_history: 5
- name: MemoizationPolicy
max_history: 5
- name: FormPolicy
Content of domain file (domain.yml) (if used & relevant):
slots:
dept:
type: text
date_slot:
type: unfeaturized
time_slot:
type: unfeaturized
doc_slot:
type: unfeaturized
time:
type: unfeaturized
name:
type : unfeaturized
requested_slot:
type: unfeaturized
intents:
- schedule_appointment:
use_entities : True
- greet
- bye
- affirmative
entities:
- dept
- time
- name
templates:
utter_greet:
- 'Hello there ! How can I help?'
utter_bye:
- 'Bye! Take care'
utter_ask_dept:
- 'With which speciality?'
utter_ask_date:
- 'On which date would you like to schedule the appointment?'
utter_ask_time:
- 'At what time would you like to schedule the appointment?'
utter_ask_name:
- 'In whose name would you like to schedule the appointment?'
utter_incorrect_dept:
- 'Sorry this speciality does not exist. You will have to enter the speciality again.'
utter_incorrect_time:
- 'Sorry! No doctor is available at date and time that you have entered. Please enter the date and time again'
utter_incorrect_date:
- 'Sorry the date you have entered is incorrect. Please enter the date and time again'
utter_schedule_appointment:
- 'Shall I confirm your appointment with {doc_slot} in the {dept} department on {date_slot} in the {time_slot}?'
utter_affirmative:
- 'Thank you! I am confirming your appointment with {doc_slot} in the {dept} department on {date_slot} in the {time_slot}'
utter_finish:
- 'thank you for entering the details'
actions:
- utter_greet
- utter_bye
- utter_schedule_appointment
- utter_affirmative
- utter_incorrect_dept
- action_bye
- action_slot_reset
- action_split_date_time
- validate_inputs
- utter_ask_dept
- utter_ask_date
- utter_ask_name
- utter_incorrect_time
forms:
- appointment_form
My stories.md contains only
## Generated Story -2827604014098265773
* greet
- utter_greet
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Getting error during rasa interactive command
I want to create intent, stories and domain response by using command rasa interactive. I can create successfully intent and stories but forΒ ......
Read more >Handling chatbot failure gracefully | by Aniruddha Karajgi
No matter how well you train your Rasa Chatbot, there are going to be scenarios your bot will not know how to handle....
Read more >THE RASA MASTERCLASS HANDBOOK - HubSpot
Failing Gracefully in Rasa ... with the project files and example training data, and it will train the NLU ... By simulating a...
Read more >How to design Rasa Training Stories with Botsociety - YouTube
Start using Botsociety http://botsociety.com/ // Learn how you can design conversations for your next AI project using the Rasa Stories.
Read more >Error while training rasa core - python - Stack Overflow
After looking up some other posts online, this seems to be an issue with Python versions below 3.6.1. Other than that, you can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks⦠works fine now
PS just so you know, with the new cli, since all of your stuff is in the default locations, instead of
simply
should do π