Skip to content

add Glove with Gensim embedding wrapper - #59

Merged
gretatuckute merged 8 commits into
mainfrom
mschrimpf/glove
Sep 3, 2022
Merged

gretatuckute merged 8 commits into
mainfrom
mschrimpf/glove

Conversation

@mschrimpf

@mschrimpf mschrimpf commented Sep 3, 2022 •

Copy link
Copy Markdown
Member

The embedding wrapper only supports neural recordings, but no behavioral tasks.

  • Gensim embedding wrapper
  • wrapper unit tests
  • instantiate for Glove
  • Glove unit tests
  • automatic weight download

The nicer solution for the weight download might be to host the converted weights somewhere [5.3GB], but I wasn't sure where to put them. Once weights are downloaded and converted, it takes about 5 minutes to load them.

@gretatuckute
gretatuckute merged commit 39f26ed into main Sep 3, 2022
@mschrimpf
mschrimpf deleted the mschrimpf/glove branch September 20, 2022 21:01
mschrimpf added a commit that referenced this pull request Oct 26, 2022
* copy Glove implementation from neural-nlp

https://github.com/mschrimpf/neural-nlp/blob/cedac1f868c8081ce6754ef0c13895ce8bc32efc/neural_nlp/models/implementations.py

* adapt GloVe to ArtificialSubject using Gensim wrapper

* automatically download weights

* fix import

* add tests README describing markers

from https://github.com/brain-score/brain-score/blob/5e43c9495eb3de93bfc12ab6b2421c66ef4f4fc4/tests/README.md

* mark glove test as travis_slow

* remove redundant prints

* use glove.txt directly, do away with word2vec conversion
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

Successfully merging this pull request may close these issues.

2 participants