Closed r-wheeler closed 6 years ago
When running in a ipython notebook
reformulator = reformulator.Reformulator( hparams_path='px/nmt/example_configs/reformulator.json', source_prefix='<en> <2en> ', out_dir='/tmp', environment_server_address='localhost:10000')
AttributeError: 'DiverseBeamSearchDecoder' object has no attribute '_coverage_penalty_weight'
When running via the cli:
python -m px.nmt.reformulator_and_selector_training \ --environment_server_address=localhost:10000 \ --hparams_path=px/nmt/example_configs/reformulator.json \ --enable_reformulator_training=true \ --enable_selector_training=false \ --train_questions=$SQUAD_DIR/train-questions.txt \ --train_annotations=$SQUAD_DIR/train-annotation.txt \ --train_data=data/squad/data_train.json \ --dev_questions=$SQUAD_DIR/dev-questions.txt \ --dev_annotations=$SQUAD_DIR/dev-annotation.txt \ --dev_data=data/squad/data_dev.json \ --glove_path=$GLOVE_DIR/glove.6B.100d.txt \ --out_dir=$REFORMULATOR_DIR \ --tensorboard_dir=$OUT_DIR/tensorboard
This should be set in the parent object as per https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py#L338
Not clear on what is missing
This was fixed some hours ago. Please try again and let us know if the error persists.
When running in a ipython notebook
AttributeError: 'DiverseBeamSearchDecoder' object has no attribute '_coverage_penalty_weight'
When running via the cli:
AttributeError: 'DiverseBeamSearchDecoder' object has no attribute '_coverage_penalty_weight'
This should be set in the parent object as per https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py#L338
Not clear on what is missing