-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
Milestone
Description
Hello!
running the very first detection really takes a lot of time. Moreover, it depends on the actual language detected:
detector.detectLanguageOf("This is an example") // takes ~8 seconds
detector.detectLanguageOf("This is an example") // takes ~4 ms
detector.detectLanguageOf("Questo è un esempio") // takes ~14 seconds
So my question is: how can I create a "warmup" procedure to run once and have all models loaded?
Very trivial implementation: run detect with a multi-language sample. Is there anything more elegant than that?
Thank you!