mengf1 / PAL

Policy based Active Learning with DQN (EMNLP-2017)
https://bit.ly/2rasQVM
88 stars 34 forks source link

Command line provided in README.md fails #5

Open jayurbain opened 6 years ago

jayurbain commented 6 years ago

I thought your paper was very interesting, so I decided to look at your code. Unfortunately, I have not been able to get it running. Any advice would be appreciated. See below.

Thanks, Jay jay.urbain@gmail.com

The application appears to be confused between tensorflow flags and your application flags.

$ python launcher_ner_bilingual.py --agent "CNNDQN" --episode 10000 --budget 1000 --train "en.train;en.testa;en.testb;en.emb;en.model.saved" --test "de.train;de.testa;de.testb;de.emb;de.model.saved"

Traceback (most recent call last): File "launcher_ner_bilingual.py", line 15, in FLAGS._parse_flags() File "/Applications/anaconda/envs/py3.6tf1.3keras/lib/python3.6/site-packages/tensorflow/python/platform/flags.py", line 84, in getattr wrapped(_sys.argv) File "/Applications/anaconda/envs/py3.6tf1.3keras/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 630, in call name, value, suggestions=suggestions) absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'agent'

mengf1 commented 6 years ago

It maybe because the tensorflow version I used was a little old. Please use tensorflow 1.0.0 (pip install tensorflow==1.0.0) to solve the problem "FLAGS._parse_flags()'' instead.