{"id":2852,"date":"2021-05-17T22:49:37","date_gmt":"2021-05-17T20:49:37","guid":{"rendered":"https:\/\/davidlebech.com\/thoughtflow\/?p=2852"},"modified":"2021-06-22T22:34:28","modified_gmt":"2021-06-22T20:34:28","slug":"language-detection-with-fasttext","status":"publish","type":"post","link":"https:\/\/davidlebech.com\/thoughtflow\/language-detection-with-fasttext\/","title":{"rendered":"Language detection with fasttext"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have used <a href=\"https:\/\/fasttext.cc\/\">fasttext<\/a> for language detection a few times, but I always seem to forget how to install and predict the language, so I created this little gist to remind myself of how to <a href=\"https:\/\/gist.github.com\/dlebech\/3c9fc5b74c4b080622188d409aaef05d\">download, instantiate the model and predict<\/a> the language of a piece of text.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have used fasttext for language detection a few times, but I always seem to forget how to install and predict the language, so I created this little gist to remind myself of how to download, instantiate the model and predict the language of a piece of text.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[114],"tags":[229,230],"class_list":["post-2852","post","type-post","status-publish","format-aside","hentry","category-code","tag-fasttext","tag-language-detection","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/posts\/2852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/comments?post=2852"}],"version-history":[{"count":0,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/posts\/2852\/revisions"}],"wp:attachment":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/media?parent=2852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/categories?post=2852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/tags?post=2852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}