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

demo , return q[-1] list index out of range - error #17

Open
En-J-A opened this issue Mar 22, 2021 · 3 comments
Open

demo , return q[-1] list index out of range - error #17

En-J-A opened this issue Mar 22, 2021 · 3 comments

Comments

@En-J-A
Copy link

En-J-A commented Mar 22, 2021

When I try to run the demo by

python demo.py gpt2 greedy

I got this output with the following error

(venv) D:\simpletod-master\simpletod-master>python demo.py gpt2 greedy

Loading Model

SimpleTOD is ready to chat. What would you like to ask?

You: hello, I need a cheap hotel

Traceback (most recent call last):
  File "D:\simpletod-master\simpletod-master\demo.py", line 696, in <module>
    domain = get_turn_domain(beliefs, domain_queue)
  File "D:\simpletod-master\simpletod-master\demo.py", line 587, in get_turn_domain
    return q[-1]
IndexError: list index out of range

when I tried to print the output line by line

I found that the belief_text and beliefs are empty :

  belief_text = get_belief_new_dbsearch(tmp_pred)
       print(belief_text)

       beliefs = convert_belief(belief_text)
       print(beliefs)

their values are:

 []
{}

Is there a problem with arguments?

@wise-east
Copy link

I have the same problem. Were you able to resolve this?

@En-J-A
Copy link
Author

En-J-A commented Aug 13, 2021

Unfortunately, no.

@mohiitaa
Copy link

Did you find a solution to this?

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

3 participants