-
Notifications
You must be signed in to change notification settings - Fork 4
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
error when running demo - add_analogies #10
Comments
Hi, sorry for the late response, I didn't see the notification before. Did you get some further output? I got no errors running the following:
Could there be some panphon version mismatch? I have |
Also, mind that you do not have to recreate the dataset locally. It's much easier to just use the prepared one online, as shown in the demo.
|
This occurs when running demo.ipynb, so I am using the online dataset. So I have run all the cells, and then this occurs when running !python3 ./suite_evaluation/eval_all.py --embd embd.npy This is the whole output I get: |
Working on a solution now. 🙂 |
I removed the dependency to create the analogy and cognate data locally. Instead, it's now all in the HF dataset. This should remove bunch of friction points, hopefully. 🙂 Could you update the repository and run the demo again? |
It runs without issue now!😁 |
Great to hear. Let me know if you discover any other issues. 🙂 Btw, for now (here) I made it so that the dataset gets downloaded every time (to make sure that you get the latest version when running it). Simply remove the |
Hi @zouharvi , the demo runs without issue but for replication purposes it is currently failing. I believe it is the same issue. |
I see now. Getting low scores also for the pre-trained models. Might take me a few weeks to circle back to this to investigate why though. |
I have come across a error messages when evaluating on sound analogies in the demo script in add_analogies.py.
The error message is:
/pwesuite/create_dataset/add_analogies.py", line 154, in find_single_perturbation_pairs
feature_vectors[tuple(ft.fts(x).numeric())].append(x)
^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'numeric'
The problem seems to occur when it runs feature_vectors[tuple(ft.fts(😕).numeric())].append(x), since ft.fts(😕) returns an empty dictionary.
The text was updated successfully, but these errors were encountered: