How to find the Languages of the given Character,(offline)?. For Example in the list(mytext), I have three characters, the first one is in English, the second one is in Hindi and the third one is in "Tamil". I try to detect the Languages of the character using langdetect package. But It produces irrelevant results. How to get the exact result? (In my case "ta"- "Tamil" (the third one) is correct. The other two are wrong)
mytext =["B","उ","பு"]
from langdetect import detect_langs,detect
print(detect(mytext[0]))
print(detect(mytext[1]))
print(detect(mytext[2]))
Result
tr
ne
ta