Replies: 1 comment
-
Hi Sam, I'm sorry for the late response. I'm quite sure it is thread-safe, even though I have not written the entire code with thread-safety in mind, to be honest. There is no global state within the library except for the data structures holding the language models in memory. The language models are stored in |
Beta Was this translation helpful? Give feedback.
-
Is
LanguageDetector
thread-safe? I understand that different detectors share models behind the scene, but canLanguageDetector
instances be shared between threads?Beta Was this translation helpful? Give feedback.
All reactions