Lingua-Go, the most accurate language detection for Go
1–10 of 26 posts
Re: Lingua-Go, the most accurate language detection for Go
#2Re: Lingua-Go, the most accurate language detection for Go
#3I only dabbled in language detection at a workshop at a conference years ago, but I was very impressed how well such models work on short text with only bigrams.
Maybe once you expand to over 70 languages does bi- and tri-grams fall short, but I just wanted to say that this is a usecase here very simple models can get you really far.
If you see a blog post where a language detection problem is solved with deep learning chances are the author doesn’t know what they are doing (towards datascience, I’m looking at you!) or it’s a tutorial for working with an NN framework.
Re: Lingua-Go, the most accurate language detection for Go
#4I appreciate how direct and clear what this library does and who it is for. I have no need for it now, but after 1 paragraph of reading I’ll be remembering its name for later.
Re: Lingua-Go, the most accurate language detection for Go
#5Can this be a problem? If a text in Language_A includes names/words of Language_B, only relying on special characters would wrongly classify the entire text as Language_B.
Re: Lingua-Go, the most accurate language detection for Go
#6For example, given "'I think, therefore I am' is the first principle of René Descartes's philosophy that was originally published in French as je pense, donc je suis.", is there a library that would tell me the main passage is in English, but contains fragments in French?
Re: Lingua-Go, the most accurate language detection for Go
#7[1] https://fasttext.cc/docs/en/language-identification.html
Re: Lingua-Go, the most accurate language detection for Go
#8> Most libraries only use n-grams of size 3 (trigrams) which is satisfactory for detecting the language of longer text fragments consisting of multiple sentences. For short phrases or single words, however, trigrams are not enough. I only dabbled in language detection at a workshop at a conference years ago, but I was very impressed how well such models work on short text with only bigrams. Maybe once you expand to o…
Re: Lingua-Go, the most accurate language detection for Go
#9BTW, the test statistic for recognizing individual words isn't interesting, unless you sample/weigh by word frequency.
Re: Lingua-Go, the most accurate language detection for Go
#10How does it actually compare to fasttext [1] in performance. Building an interface to that in GO shouldn’t be too complicated. The claim that all language identification (lid) relies on ngrams is bold and there has been a switch to pure neural network based approaches. [1] https://fasttext.cc/docs/en/language-identification.html
I’ll try to find time to do it myself, but most probably only tomorrow