Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'dict' object has no attribute 'has_key' #51

Open
tamio96 opened this issue Sep 28, 2018 · 1 comment
Open

AttributeError: 'dict' object has no attribute 'has_key' #51

tamio96 opened this issue Sep 28, 2018 · 1 comment

Comments

@tamio96
Copy link

tamio96 commented Sep 28, 2018

I got this error when run:
python SentenceMatchTrainer.py --config_path /home/tamiomusic/BiMPM/con
figs/quora.sample.config

I only change quora.sample.config to fix with files' directory:
"train_path": "/home/tamiomusic/BiMPM/quora/train.tsv",
"dev_path": "/home/tamiomusic/BiMPM/quora/dev.tsv",
"word_vec_path": "/home/tamiomusic/BiMPM/quora/wordvec.txt",
"model_dir": "/home/tamiomusic/BiMPM/quora/logs"

Full log:
Loading the configuration from /home/tamiomusic/BiMPM/configs/snli.sample.config
Traceback (most recent call last):
File "SentenceMatchTrainer.py", line 251, in
FLAGS = enrich_options(FLAGS)
File "SentenceMatchTrainer.py", line 201, in enrich_options
if not options.dict.has_key("in_format"):
AttributeError: 'dict' object has no attribute 'has_key'

Best regards,

@guotong1988
Copy link

python2, not python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants