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

More granular model caching #91

Closed
zacharywhitley opened this issue Mar 29, 2021 · 2 comments
Closed

More granular model caching #91

zacharywhitley opened this issue Mar 29, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@zacharywhitley
Copy link

It would be nice if you could run LanguageDetectorBuilder.fromLanguages(ENGLISH, FRENCH) and then run LanguageDetectorBuilder.fromLanguages(ENGLISH, GERMAN) and only have it load the additional GERMAN model. If I understand it correctly, currently it would reload the ENGLISH model. I'm hoping you can do this unless there is something being done jointly on the set of models before it's run.

@pemistahl
Copy link
Owner

Hi Zachary, thanks for your request.

I've actually started implementing exactly this for the next release 1.1.0. See commit 63e2532, for instance. I just haven't had the time so far to finish it but will continue soon.

@pemistahl pemistahl added the enhancement New feature or request label Mar 29, 2021
@pemistahl pemistahl added this to the Lingua 1.1.0 milestone Mar 29, 2021
@zacharywhitley
Copy link
Author

Fantastic. I'll look forward to it. I used Lingua to implement a user defined function for a SPARQL database so try and infer language tags.

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

No branches or pull requests

2 participants