You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error:
File "sif_embedding.py", line 13, in
(words, We) = data_io.getWordmap(wordfile)
File "../src/data_io.py", line 18, in getWordmap
v.append(float(i[j]))
ValueError: could not convert string to float: '.'
Is it a bug or do we always expect numerical data for the line v.append(float(i[j]))?
The text was updated successfully, but these errors were encountered:
It's a bug (or at least a compatibility issue).
It should be .split(" ") in data_io.getWordmap() instead of .split() as this will prevent splitting on non-breaking spaces (which is the case here for glove.840B.300d.txt)
I am getting the following error:
File "sif_embedding.py", line 13, in
(words, We) = data_io.getWordmap(wordfile)
File "../src/data_io.py", line 18, in getWordmap
v.append(float(i[j]))
ValueError: could not convert string to float: '.'
Is it a bug or do we always expect numerical data for the line v.append(float(i[j]))?
The text was updated successfully, but these errors were encountered: