by allan_s · 12y ago · 0 comments
shameless plug https://github.com/allan-simon/Tatodetect it covers 179 language (actually as much as Tatoeba project does) and it can run offline with explanation on how to generate your own database from a CC-by corpus.
After the advantage of Franc is that it can be used directly as a npm library while Tatodetect is a micro-webservice, and for some edge languages, Tatodetect is certainly not as good as Franc (haven't done yet a test of both to compare)
Shameless plug, the page clearly stated you can fork franc to support 300+ languages ;)
If you set that number to 0, or 100,000 and execute `npm prepublish`, your franc supports more languages :) That’s it!
If the original language data is available I'd suggest classifying the trigrams as "high" and "low" frequency, which should improve performance without needing to keep full frequency data.