Open ravi03071991 opened 6 years ago
Hi Ravi,
Thanks for using our code and sorry for the late reply!
I think this might be a software version issue.
I run it on my machine and on another machine using linux system, the code both works. My theano version is 0.82, python version 2.7.6, scipy version 0.15.1, numpy version 0.11.2.
The other machine has the same theano and python version but has scipy verison 0.18.1, numpy version 0.12.0.
Maybe can you try with these version configurations? Also, are you downloading the embedding from this page http://ttic.uchicago.edu/~kgimpel/commonsense.html of embeddings.txt.gz?
Hope that helps, let me know if you still have issue.
Hi @Lorraine333 ,
Thank you for the help. I tried with the above configuration but numpy version 0.11.2/ 0.12.0 are not available. Can I know how to install with the specific numpy versions? pip install numpy==0.11.2 is not working I tried with numpy 1.9 version and it is giving same error.
Regards, D. Ravi Theja.
Hi,
I tried with numpy version 1.14.2, and python version 2.7. How about your theono and lasagne version? You can try use these command to install the "correct" theano and lasagne versions. It works for me.
conda install theano==0.8.2 conda install lasagne==0.1
Let me know if you still have problems.
Hi,
still getting same error. Can I know the scipy version you are using for this? I am using python=2.7.6, numpy=1.14.2, scipy=1.0.1, theano=0.8.2, lasagne=0.1.
I am also getting following user warning.
UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. "downsample module has been moved to the theano.tensor.signal.pool module.")
Regards, D. Ravi Theja.
my scipy version is 1.0.1 as well. So I don't think it's version error anymore.
Also, are you downloading the embedding from this page http://ttic.uchicago.edu/~kgimpel/commonsense.html of embeddings.txt.gz? And use this to initialize your word embedding?
Lorraine
I have downloaded embedding from this page http://ttic.uchicago.edu/~kgimpel/commonsense.html of embeddings.txt.gz. I renamed the file with embeddings.txt to get extracted. Is this the right way to extract the embeddings.txt.gz or is there any other command to extract?
Regards, D. Ravi Theja.
Humm, that's right.
The code works on my machine, so I really have no idea why it's not working. Are you getting the same error running other models as well?
I tried running dnn_hingeloss model...I am getting following value error.
File "train.py", line 53, in <module>
(words, We) = getWordmap('../commonsendata/embeddings/embeddings.txt')
File "/home/ubuntu/data/ACL_CKBC/dnn_hingeloss/utils.py", line 72, in getWordmap
v.append(float(i[j]))
ValueError: could not convert string to float: �|��0
is there any problem with my embeddings.txt file?
Regards, D. Ravi Theja.
Yeah. I think it might be your embedding file. Humm, can you try on another machine see if that works?
I tried in other machine and getting same ValueError. I think the problem is with embeddings.txt file. When I opened the file it is showing some other characters which are not in readable form. Can you check once the uploaded embeddings.txt.gz file is the right one?
Hi @Lorraine333,
I guess the embeddings.txt.gz file got corrupted. Can you please check it once and upload again if needed?
Regards, D. Ravi Theja.
I tried it myself and it works. I can send you directly if you want.
Yes. Can you send/share it to ravi03071991@gmail.com ?
Thank you.
https://drive.google.com/open?id=1p9jB9QHUFAQlWSIjb2azDGsQqvtUh3Il
google drive shared link
Hi,
I am getting following error when I tried running train.py file from bilinear_ce. Can you help me on this?
Thank you.