Skip to content

Conversation

@LucyMaber
Copy link

No description provided.

)


class TestWhitespace:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's more idiomatic to use importlib.util.find_spec to check for the existence of dependencies.

see https://github.com/cthoyt/ssslm/blob/50dda51b40c885082dffef340fb11d932461ae80/tests/test_ner/test_scispacy.py#L10-L27, in which a more explicit check is made for the installation of en_core_sci_sm

Copy link
Contributor

@cthoyt cthoyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has lots of awesome stuff! But I would suggest splitting it into many smaller independent PRs, since it's very difficult to understand all at once / assess how the different changes interact.

Note: I'm not a maintainer, just an interested bystander

]
)

infix_re = compile_infix_regex(infixes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just replaced with a new function? if this is sufficient, why not re-implement the old function by using a call to the new one?

…s utility functions; enhance whitespace test for model loading
@plandes
Copy link

plandes commented Jan 4, 2026

Any news on when this will be released? I am upgrading to Python 3.13 and spaCy 3.8, and this change is needed for that. Thanks in advance.

@LucyMaber
Copy link
Author

Honestly I have stopped working on that yep I believe it works but if the maintainers want to change it or merge it in or anyone else then it's up to them

@plandes
Copy link

plandes commented Jan 4, 2026

@LucyMaber The maintainers might respond soon since the holiday break is about over. But you could always roll your wheel and upload to PyPi of course. Then we could use your changes to get us by and then cut back over to the original when they fold it in.

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.

4 participants