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 multiple_domains.py #3

Open
Mayanksoni20 opened this issue Sep 30, 2019 · 1 comment
Open

Error while running multiple_domains.py #3

Mayanksoni20 opened this issue Sep 30, 2019 · 1 comment

Comments

@Mayanksoni20
Copy link

Traceback (most recent call last):
  File "mtrand.pyx", line 1115, in mtrand.RandomState.choice
TypeError: 'dict_keys' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multiple_domains.py", line 311, in <module>
    gen_bot.gen_corpus("test", rest_spec, complexity.CleanSpec, test_size)
  File "C:\Users\Mayank\Desktop\GithubProjects\SimDial\simdial\generator.py", line 146, in gen_corpus
    corpus = self.gen(domain, complex, num_sess=size)
  File "C:\Users\Mayank\Desktop\GithubProjects\SimDial\simdial\generator.py", line 108, in gen
    usr = User(domain, complexity)
  File "C:\Users\Mayank\Desktop\GithubProjects\SimDial\simdial\agent\user.py", line 76, in __init__
    self.goal_cnt = np.random.choice(complexity.multi_goals.keys(), p=complexity.multi_goals.values())
  File "mtrand.pyx", line 1117, in mtrand.RandomState.choice
ValueError: 'a' must be 1-dimensional or an integer

@QasimWani
Copy link

i had similar issues when using python2.7.
try running it in python3+ using this forked repo: https://github.com/ruinunca/SimDial
it worked for me.

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

2 participants