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.
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.