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

Allow LanguageDetector to be supplied with custom TestDataLanguageModel providers #249

Open
killergerbah opened this issue Jan 10, 2025 · 0 comments

Comments

@killergerbah
Copy link

killergerbah commented Jan 10, 2025

Currently, the library loads its own language model from disk into memory. However, I would like to customize this behavior. For language detection to work, it looks like the only behavior required is an implementation of getRelativeFrequency for various n-gram language models.

This would allow me to have the option of storing the language model remotely (for example: in Redis), instead of needing hundreds of megabytes of memory for the in-memory language models.

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

No branches or pull requests

1 participant