-
Notifications
You must be signed in to change notification settings - Fork 32
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
a question about interact_strat #12
Comments
according to #11
|
I have another question, A new conversation starts! A new conversation starts! |
|
Hi! Great work!
I wanted to interact with the bot with strategy,
so I trained the model following
train_strat.sh
.then I wanted to interact with the trained model and run
interact_strat.sh
.However, I get errors in
inputters/strat.py
How could I solve the problem?
/workspace/Dialogue/Emotional-Support-Conversation/codes_zcj# bash RUN/interact_strat.sh
06/07/2022 00:58:18 - INFO - utils.building_utils - loading finetuned model from /workspace/Dialogue/Emotional-Support-Conversation/codes_zcj/DATA/strat.strat/2022-06-07004140.3e-05.16.1gpu/epoch-1.bin
06/07/2022 00:58:19 - INFO - utils.building_utils - deploying model...
A new conversation starts!
Human: Hi!
Traceback (most recent call last):
File "interact.py", line 168, in
inputs = inputter.convert_data_to_inputs(history, toker, **dataloader_kwargs)
File "/workspace/Dialogue/Emotional-Support-Conversation/codes_zcj/inputters/strat.py", line 87, in convert_data_to_inputs
strat_id = process('[' + dialog[i]['strategy'] + ']')
KeyError: 'strategy'
The text was updated successfully, but these errors were encountered: