Skip to content
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

Glove word embedding links returns 404 #62

Open
marquesarthur opened this issue Mar 12, 2021 · 2 comments
Open

Glove word embedding links returns 404 #62

marquesarthur opened this issue Mar 12, 2021 · 2 comments

Comments

@marquesarthur
Copy link

In the second step:

Second, this project uses pretrained GloVe word embeddings of 100 dimensions, trained on 6B tokens. Download and extract under $DATA/embeddings_glove/.

The link to glove http://nlp.stanford.edu/data/glove.6B.100d.zip seems broken

@jayralencar
Copy link

I downloaded it from http://nlp.stanford.edu/data/glove.6B.zip, but the dimensions do not match.

Reading model from logs/fn1.7-pretrained-targetid/best-targetid-1.7-model ...
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/jayr/dev/open-sesame/sesame/targetid.py", line 459, in <module>
    model.populate(model_file_name)
  File "_dynet.pyx", line 1461, in _dynet.ParameterCollection.populate
  File "_dynet.pyx", line 1516, in _dynet.ParameterCollection.populate_from_textfile
RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050})

@ncaq
Copy link

ncaq commented Aug 19, 2021

A note for the explorer.
I thought it might be due to the lack of aligned dyNET versions, so I aligned them.
The old version of dyNET cannot be installed due to Eigen's change of host location, so I patched that only.
ncaq/dynet at fix-v2.0.z-url
Also, the type of the init attribute was different, so I decided to let init be the default.
And I got the same error.

Loading model from logs/fn1.7-pretrained-frameid/best-frameid-1.7-model ...
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/ncaq/Desktop/open-sesame/sesame/frameid.py", line 369, in <module>
    model.populate(model_file_name)
  File "_dynet.pyx", line 1061, in _dynet.ParameterCollection.populate
  File "_dynet.pyx", line 1116, in _dynet.ParameterCollection.populate_from_textfile
RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050})

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

No branches or pull requests

3 participants