Creating multi language support using registry, analyzer and provider #1060
-
Just need a second opinion if I am using the registry, analyzer and provider or I have created spaghetti code? Here is my code:
And here is the language code if someone is interested:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, looks good to me in terms of the setup, however it is probably better to load the Thanks for sharing your code for language detection! this is very useful. |
Beta Was this translation helpful? Give feedback.
Hi, looks good to me in terms of the setup, however it is probably better to load the
AnalyzerEngine
only once as this code would instantiate the spacy models on every call, which is likely going to be slow.Thanks for sharing your code for language detection! this is very useful.