Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while running interactive training #15

Open
Caroline-Sahrudayi opened this issue May 24, 2019 · 0 comments
Open

error while running interactive training #15

Caroline-Sahrudayi opened this issue May 24, 2019 · 0 comments

Comments

@Caroline-Sahrudayi
Copy link

I get the following error while running rasa interactive.
Details: I am using the new rasa 1.0.1 version with just the basic files in the project directory that are obtained with the rasa init command. while running the interactive training the training session terminates while displaying the following errors.Can anyone please kindly help me out !Thanks!

Processed Story Blocks: 100%|████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 2528.21it/s, # trackers=1]
? Your input -> hey
? Your NLU model classified 'hey' with intent 'greet' and there are no entities, is this correct? Yes

WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:


Chat History

Bot You

────────────────────────────────────────────
1 action_listen
────────────────────────────────────────────
2 hey
intent: greet 0.96

2019-05-24 12:41:15 ERROR rasa.core.training.interactive - An exception occurred while recording messages.
Traceback (most recent call last):
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1349, in record_messages
endpoint, sender_id, finetune, sender_ids, plot_file
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 883, in _predict_till_next_listen
sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1274, in _plot_trackers
event_sequences[-1], event_sequences, output_file=None, max_history=2
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 467, in visualize_neighborhood
else sanitize(message.get("intent", {})).get("name", " ? "),
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 364, in sanitize
return re.sub(r"""[&\<>"'%();+]""", "", s)
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
2019-05-24 12:41:15 ERROR asyncio - Task exception was never retrieved
future: <Task finished coro=<_serve_application..run_interactive_io() done, defined at c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py:1391> exception=TypeError('expected string or bytes-like object',)>
Traceback (most recent call last):
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1399, in run_interactive_io
sender_id=uuid.uuid4().hex,
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1349, in record_messages
endpoint, sender_id, finetune, sender_ids, plot_file
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 883, in _predict_till_next_listen
sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1274, in _plot_trackers
event_sequences[-1], event_sequences, output_file=None, max_history=2
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 467, in visualize_neighborhood
else sanitize(message.get("intent", {})).get("name", " ? "),
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 364, in sanitize
return re.sub(r"""[&\<>"'%();+]""", "", s)
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant