Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

evaluate.py error #174

Open
ramdhan1989 opened this issue Jul 23, 2020 · 0 comments
Open

evaluate.py error #174

ramdhan1989 opened this issue Jul 23, 2020 · 0 comments

Comments

@ramdhan1989
Copy link

ramdhan1989 commented Jul 23, 2020

I try to run evaluate.py
python evaluate.py --src_lang en --src_emb data/wiki.en.vec --max_vocab 200000
and return error below

Traceback (most recent call last):
File "evaluate.py", line 55, in
evaluator.monolingual_wordsim(to_log)
File "C:\Users\Owner\shopee\title_translation\MUSE-master\src\evaluation\evaluator.py", line 49, in monolingual_wordsim
) if self.params.tgt_lang else None
File "C:\Users\Owner\shopee\title_translation\MUSE-master\src\evaluation\wordsim.py", line 105, in get_wordsim_scores
coeff, found, not_found = get_spearman_rho(word2id, embeddings, filepath, lower)
File "C:\Users\Owner\shopee\title_translation\MUSE-master\src\evaluation\wordsim.py", line 69, in get_spearman_rho
word_pairs = get_word_pairs(path)
File "C:\Users\Owner\shopee\title_translation\MUSE-master\src\evaluation\wordsim.py", line 39, in get_word_pairs
word_pairs.append((line[0], line[1], float(line[2])))
ValueError: could not convert string to float: 'encoding="utf-8"?>'

any idea how to solve it ?

thank you

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

No branches or pull requests

1 participant