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

KeyError: 'post_id' #62

Open
prateekagarwal3 opened this issue Feb 27, 2020 · 0 comments
Open

KeyError: 'post_id' #62

prateekagarwal3 opened this issue Feb 27, 2020 · 0 comments

Comments

@prateekagarwal3
Copy link

prateekagarwal3 commented Feb 27, 2020

read_examples: data/train.json
Traceback (most recent call last):
File "parse_dialogue.py", line 60, in
examples = read_examples(args.transcripts, args.max_examples, Scenario)
File "/home/prateekagarwal/cocoa/cocoa/core/dataset.py", line 120, in read_examples
examples.append(Example.from_dict(raw, Scenario))
File "/home/prateekagarwal/cocoa/cocoa/core/dataset.py", line 29, in from_dict
scenario = Scenario.from_dict(None, raw['scenario'])
File "/home/prateekagarwal/cocoa/craigslistbargain/core/scenario.py", line 34, in from_dict
return Scenario(raw['uuid'], raw['post_id'], raw['category'], None, scenario_attributes, [KB.from_dict(scenario_attributes, kb) for kb in raw['kbs']])
KeyError: 'post_id'

Getting this error on running the step which parses training data.
I simply installed the requirements and then started running the steps mentioned under building the bot.

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