You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't know exactly where to post it. It's not a problem as such, just an addition.
For an offline translator based on Meta AI's NLLB, I use this detector in conjunction with langdetect, among other things, to recognize text modules if no source language is specified. This occasionally causes problems if Latin characters are present in a predominantly Arabic, Cyrillic or other alphabet, as all alphabets are returned by the detection. The following code provides a remedy if the text is predominantly written in one alphabet:
Hi,
I didn't know exactly where to post it. It's not a problem as such, just an addition.
For an offline translator based on Meta AI's NLLB, I use this detector in conjunction with langdetect, among other things, to recognize text modules if no source language is specified. This occasionally causes problems if Latin characters are present in a predominantly Arabic, Cyrillic or other alphabet, as all alphabets are returned by the detection. The following code provides a remedy if the text is predominantly written in one alphabet:
The text was updated successfully, but these errors were encountered: