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

Add StaticVectors.v1 #5

Merged

Conversation

adrianeboyd
Copy link
Contributor

@adrianeboyd adrianeboyd commented Apr 12, 2021

As a companion PR to explosion/spaCy#7674, add:

  • spacy-legacy.StaticVectors.v1
  • spacy-legacy.HashEmbedCNN.v1
  • spacy-legacy.MultiHashEmbed.v1
  • spacy-legacy.CharacterEmbed.v1

Bump spacy-legacy version to v3.0.3.

@adrianeboyd
Copy link
Contributor Author

This is all extraordinarily displeasing.

@adrianeboyd adrianeboyd force-pushed the feature/add-static-vectors-v1 branch from 4603a01 to 9383a4d Compare April 12, 2021 09:29
adrianeboyd added a commit to adrianeboyd/spaCy that referenced this pull request Apr 12, 2021
* Increase versions of all architctures and layers related to
`StaticVectors`
* Improve efficiency of 0-vector operations

Parallel `spacy-legacy` PR: explosion/spacy-legacy#5
For tok2vec, freeze the implementations by retrieving all layers and
architectures from the registry instead of importing from `thinc` or
`spacy`.
@adrianeboyd
Copy link
Contributor Author

I am now slightly less displeased, but kind of wish that StaticVectors was a parameter in the Embed architectures instead, although it would make the configs look a bit messier.

@adrianeboyd adrianeboyd merged commit f5855a8 into explosion:master Apr 21, 2021
honnibal pushed a commit to explosion/spaCy that referenced this pull request Apr 22, 2021
* Replace negative rows with 0 in StaticVectors

Replace negative row indices with 0-vectors in `StaticVectors`.

* Increase versions related to StaticVectors

* Increase versions of all architctures and layers related to
`StaticVectors`
* Improve efficiency of 0-vector operations

Parallel `spacy-legacy` PR: explosion/spacy-legacy#5

* Update config defaults to new versions

* Update docs
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.

1 participant