Skip to content

Can a LanguageDetector be called from several threads in parallel ? #244

Closed Answered by pemistahl
rgeronimi asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, both Rust and pure Python implementations are thread-safe. They use thread-safe data structures internally, so you can use a single LanguageDetector instance from multiple threads.

If you encounter any problems, then please open an issue with code to reproduce.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rgeronimi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #243 on October 31, 2024 18:23.