You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an error when running the following command python run.py predict serialization_dir/select_and_answer_model_answerer_for_musique_ans/model.tar.gz
serialization_dir/select_and_answer_model_selector_for_musique_ans/predictions/musique_ans_dev.jsonl
--output-file serialization_dir/select_and_answer_model_answerer_for_musique_ans/predictions/serialization_dir__select_and_answer_model_selector_for_musique_ans__predictions__musique_ans_dev.jsonl
--predictor inplace_text_ranker --batch-size 16 --cuda-device 0 --silent
Traceback (most recent call last):
File "run.py", line 35, in
main(prog="allennlp")
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/init.py", line 119, in main
args.func(args)
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 239, in _predict
manager.run()
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 211, in run
for model_input_json, result in zip(batch_json, self._predict_json(batch_json)):
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 159, in _predict_json
results = self._predictor.predict_batch_json(batch_data)
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 36, in predict_batch_json
predictions = self.predict_batch_instance(instances)
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 60, in predict_batch_instance
predictions = [{
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 63, in
for index in output["predicted_ordered_indices"]
KeyError: 'predicted_ordered_indices'
The text was updated successfully, but these errors were encountered:
I got an error when running the following command python run.py predict serialization_dir/select_and_answer_model_answerer_for_musique_ans/model.tar.gz
serialization_dir/select_and_answer_model_selector_for_musique_ans/predictions/musique_ans_dev.jsonl
--output-file serialization_dir/select_and_answer_model_answerer_for_musique_ans/predictions/serialization_dir__select_and_answer_model_selector_for_musique_ans__predictions__musique_ans_dev.jsonl
--predictor inplace_text_ranker --batch-size 16 --cuda-device 0 --silent
Traceback (most recent call last):
File "run.py", line 35, in
main(prog="allennlp")
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/init.py", line 119, in main
args.func(args)
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 239, in _predict
manager.run()
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 211, in run
for model_input_json, result in zip(batch_json, self._predict_json(batch_json)):
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 159, in _predict_json
results = self._predictor.predict_batch_json(batch_data)
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 36, in predict_batch_json
predictions = self.predict_batch_instance(instances)
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 60, in predict_batch_instance
predictions = [{
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 63, in
for index in output["predicted_ordered_indices"]
KeyError: 'predicted_ordered_indices'
The text was updated successfully, but these errors were encountered: