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

Refactor lexeme mem passing #12125

Merged
merged 4 commits into from
Jan 25, 2023
Merged

Conversation

polm
Copy link
Contributor

@polm polm commented Jan 19, 2023

Description

This changes the _new_lexeme method in the vocab to not take a memory pool as an argument. The passed value has not been used since #6809.

I am having some local test failures, but they are related to my thinc version, and don't seem to have anything to do with the changes in this PR. (On review, this seems to be normal because Thinc is currently using a dev version.) This is not an issue in CI.

Types of change

minor refactor

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@polm polm added the 🔜 v4.0 Related to upcoming v4.0 label Jan 19, 2023
@polm polm marked this pull request as ready for review January 19, 2023 07:51
polm added 3 commits January 23, 2023 13:12
Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.
@polm
Copy link
Contributor Author

polm commented Jan 23, 2023

Good point about removing the mem argument from the calling methods. The methods involved are used in many places, so the changes were pretty extensive, but I think this should be resovled now.

@polm polm merged commit de360bc into explosion:v4 Jan 25, 2023
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request Mar 14, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request Mar 14, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request Mar 29, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request Apr 17, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request May 10, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request May 10, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
jordankanter pushed a commit to jordankanter/spaCy that referenced this pull request May 21, 2024
* Don't pass mem pool to new lexeme function

* Remove unused mem from function args

Two methods calling _new_lexeme, get and get_by_orth, took mem arguments
just to call the internal method. That's no longer necessary, so this
cleans it up.

* prettier formatting

* Remove more unused mem args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔜 v4.0 Related to upcoming v4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants