-
Notifications
You must be signed in to change notification settings - Fork 2
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
Assertion error when running supervised.py #1
Comments
I have the same issue I was trying to run
which gives error
This fails because of line: it is trying to find:
|
After fixing that line I've got to:
|
I'll look into these and get back to you by the end of the week. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to reproduce the result reported in your paper. However, when I tried
python supervised.py --src_lang $src --tgt_lang "de $tgt" --src_emb /data/embeddings/$src.emb.txt --tgt_emb "/data/embeddings/de.emb.txt /data/embeddings/$tgt.emb.txt" - -exp_id $src-$tgt
--n_refinement 15 --dico_train default --generalized True
, the following error occurred:
INFO - 01/24/19 13:27:42 - 0:00:00 - ============ Initialized logger ============
INFO - 01/24/19 13:27:42 - 0:00:00 - cuda: True
dico_build: S2T&T2S
dico_eval: default
dico_max_rank: 10000
dico_max_size: 0
dico_method: csls_knn_10
dico_min_size: 0
dico_threshold: 0
dico_train: default
emb_dim: 300
exp_id: it-en
exp_name: debug
exp_path: /home/xfbai/mywork/GPA/dumped/debug/it-en
export: txt
fine_tuning: 0
generalized: True
map_id_init: True
max_vocab: 200000
n_refinement: 15
normalize_embeddings:
seed: -1
src_emb: /data/embeddings/it.emb.txt
src_lang: it
tgt_emb: ['/data/embeddings/de.emb.txt', '/data/embeddings/en.emb.txt']
tgt_lang: ['de', 'en']
verbose: 2
INFO - 01/24/19 13:27:42 - 0:00:00 - The experiment will be stored in /home/xfbai/mywork/GPA/dumped/debug/it-en
INFO - 01/24/19 13:27:42 - 0:00:00 - Loading embeddings for language it
INFO - 01/24/19 13:28:16 - 0:00:35 - Loaded 199851 pre-trained word embeddings.
INFO - 01/24/19 13:28:32 - 0:00:50 - Loading embeddings for language de
INFO - 01/24/19 13:28:46 - 0:01:05 - Loaded 200000 pre-trained word embeddings.
INFO - 01/24/19 13:28:58 - 0:01:16 - Loading embeddings for language en
INFO - 01/24/19 13:29:42 - 0:02:00 - Loaded 199958 pre-trained word embeddings.
data/crosslingual/dictionaries/it-['de', 'en'].0-5000.txt
Traceback (most recent call last):
File "supervised.py", line 90, in
trainer.load_training_dico(params.dico_train, support)
File "/home/xfbai/mywork/GPA/src/trainer.py", line 158, in load_training_dico
word2id1, word2id2, True
File "/home/xfbai/mywork/GPA/src/evaluation/word_translation.py", line 74, in load_dictionary
assert os.path.isfile(path)
AssertionError
I will be great appreciated that if you can tell me how to solve this problem.
The text was updated successfully, but these errors were encountered: