python2 reformulate.py
Num encoder layer 2 is different from num decoder layer 4, so set pass_hidden_state to False
# hparams:
src=source
tgt=target
train_prefix=None
dev_prefix=None
test_prefix=None
train_annotations=None
dev_annotations=None
test_annotations=None
out_dir=/tmp/active-qa/reformulator
# Vocab file data/spm2/spm.unigram.16k.vocab.nocount.notab.source exists
using source vocab for target
# Use the same embedding for source and target
Traceback (most recent call last):
File "reformulate.py", line 10, in <module>
environment_server_address='localhost:10000')
File "/root/active-qa/px/nmt/reformulator.py", line 130, in __init__
use_placeholders=True)
File "/root/active-qa/px/nmt/model_helper.py", line 171, in create_train_model
trie=trie)
File "/root/active-qa/px/nmt/gnmt_model.py", line 56, in __init__
trie=trie)
File "/root/active-qa/px/nmt/attention_model.py", line 65, in __init__
trie=trie)
File "/root/active-qa/px/nmt/model.py", line 137, in __init__
hparams.environment_server, mode=hparams.environment_mode))
File "/root/active-qa/px/nmt/environment_client.py", line 152, in make_environment_reward_fn
grpc.channel_ready_future(channel).result(timeout=30)
File "/root/active-qa/venv/local/lib/python2.7/site-packages/grpc/_utilities.py", line 134, in result
self._block(timeout)
File "/root/active-qa/venv/local/lib/python2.7/site-packages/grpc/_utilities.py", line 84, in _block
raise grpc.FutureTimeoutError()
grpc.FutureTimeoutError
Does the gRPC server have to run in order to use the Reformulator or am I missing something else here?
Thank you for your interesting paper & open-sourcing it!
Running the code given in: https://github.com/google/active-qa/issues/9#issuecomment-432807557 but getting a grpc.FutureTimeoutError:
Does the gRPC server have to run in order to use the Reformulator or am I missing something else here?