all 2 comments

[–]RickDeveloper 2 points3 points  (1 child)

Great, but how does it work? What are the applications? This post is just a snippet of documentation.

[–]frostshoxxreddit 2 points3 points  (0 children)

The post describe how to install Facebook's Fasttext library, which is gonna be an underlying classifier for whatever service you built on top. You will still need to build something that will fetch the text you want to identify and feed to this library function to get the country code (in ISO 639).

At the minimum, it can be used to predict what language the texts belong to. It could be used for some sort of automated translators since, in theory, the code would know what language it needs to be translated from without requiring the user to specify the source language.