Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def detector_factory():
init_factory()
from langdetect.detector_factory import _factory as detector_factory
return detector_factory