-
Notifications
You must be signed in to change notification settings - Fork 200
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
LangDetectException - 'Need to load profiles.' #65
Comments
I ma having the same issue. Let me know how you resolve it |
same issue, any updates? |
Same issue here, any update? |
For me, this issue may be caused by the use of a multi-process program. The solution is to execute a detect operation during the formal multi-threaded request. Alternatively, add a thread lock in init_factory to ensure that only one thread is executing init_factory. |
@dongZheX can you show a code snippet of your proposed solution please? |
"If you are experiencing initialization failure due to multiprocessing, the simplest solution is to run langtect.detect(xxx) once before running the multiprocessing program."
…---- Replied Message ----
| From | Ahmed ***@***.***> |
| Date | 12/07/2023 18:12 |
| To | Mimino666/langdetect ***@***.***> |
| Cc | dongZheX ***@***.***>,
Mention ***@***.***> |
| Subject | Re: [Mimino666/langdetect] LangDetectException - 'Need to load profiles.' (#65) |
@dongZheX can you show a code snippet of your proposed solution please?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi,
I sometimes get a LangDetectException which tells me: 'Need to load profiles.'
Is there a way to check if all languages have been loaded before calling the detect method?
Thank you in advance.
The text was updated successfully, but these errors were encountered: