{"id":15296148,"url":"https://github.com/mlampros/fasttext","last_synced_at":"2025-10-18T02:54:33.462Z","repository":{"id":37383978,"uuid":"180861446","full_name":"mlampros/fastText","owner":"mlampros","description":"R package for 'Efficient Learning of Word Representations and Sentence Classification'","archived":false,"fork":false,"pushed_at":"2024-02-15T10:18:34.000Z","size":3498,"stargazers_count":42,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T01:49:11.462Z","etag":null,"topics":["cpp11","fasttext","r"],"latest_commit_sha":null,"homepage":"https://mlampros.github.io/fastText/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlampros.png","metadata":{"funding":{"github":["mlampros"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null},"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-04-11T19:13:54.000Z","updated_at":"2025-01-14T12:57:55.000Z","dependencies_parsed_at":"2024-02-15T11:30:59.117Z","dependency_job_id":"b869b420-9bc6-4011-baf0-f02749d5abc8","html_url":"https://github.com/mlampros/fastText","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"44d52040c7eabf37f4ff01eabc0f8556284213e9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlampros%2FfastText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlampros%2FfastText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlampros%2FfastText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlampros%2FfastText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlampros","download_url":"https://codeload.github.com/mlampros/fastText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248767949,"owners_count":21158561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp11","fasttext","r"],"created_at":"2024-09-30T18:09:34.579Z","updated_at":"2025-10-18T02:54:33.395Z","avatar_url":"https://github.com/mlampros.png","language":"C++","funding_links":["https://github.com/sponsors/mlampros","https://www.buymeacoffee.com/VY0x8snyh"],"categories":[],"sub_categories":[],"readme":"\n---\noutput: github_document\n---\n\n[![tic](https://github.com/mlampros/fastText/workflows/tic/badge.svg?branch=master)](https://github.com/mlampros/fastText/actions)\n[![codecov.io](https://codecov.io/github/mlampros/fastText/coverage.svg?branch=master)](https://codecov.io/github/mlampros/fastText?branch=master)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fastText)](http://cran.r-project.org/package=fastText)\n[![Downloads](http://cranlogs.r-pkg.org/badges/grand-total/fastText?color=blue)](http://www.r-pkg.org/pkg/fastText)\n\u003ca href=\"https://www.buymeacoffee.com/VY0x8snyh\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" height=\"21px\" \u003e\u003c/a\u003e\n[![Dependencies](https://tinyverse.netlify.com/badge/fastText)](https://cran.r-project.org/package=fastText)\n\n\n## fastText\n\u003cbr\u003e\n\nThe **fastText** R package is an interface to the [fastText](https://github.com/facebookresearch/fastText) library for efficient learning of word representations and sentence classification. More details on the functionality of fastText can be found in the \n\n* [fastText_updated_version](http://mlampros.github.io/2019/04/11/fastText_updated_version/) (blog post)\n* [fasttext_language_identification](http://mlampros.github.io/2021/05/14/fasttext_language_identification/) (blog post)\n* [package documentation](https://mlampros.github.io/fastText/reference/index.html).\n\n\u003cbr\u003e\n\nThe [official website of the fasttext algorithm](https://fasttext.cc/) includes more details regarding the supervised \u0026 unsupervised functions. The following image shows the difference between [**cbow** and **skipgram**](https://fasttext.cc/docs/en/unsupervised-tutorial.html#advanced-readers-skipgram-versus-cbow) (*models to compute word representations*)\n\n\u003cbr\u003e\n\n![](./man/figures/skipgram_vs_cbow.png)\n\n\u003cbr\u003e\n\nMoreover, the following figure - extracted from [a survey (scientific paper) related to word embeddings](https://hal.science/hal-03148517/document) and recent advancements in Large Language Models - shows the differences between *static* and *contextualized* word embeddings\n\n \u003cbr\u003e\n\n![](./man/figures/static_contextualised_word_embeddings.png)\n\n\u003cbr\u003e\n\nYou can either install the package from CRAN using,\n\n```R\n\ninstall.packages(\"fastText\")\n \n\n```\n\n\u003cbr\u003e\n\nor from Github using the *install_github* function of the *remotes* package,\n\n```R\n\nremotes::install_github('mlampros/fastText')\n\n\n```\n\u003cbr\u003e\n\n**or** directly download the fastText-zip file using the **Clone or download** button in the [repository page](https://github.com/mlampros/fastText), extract it locally (rename it to *fastText* if necessary and check that files such as DESCRIPTION, NAMESPACE etc. are present when you open the fastText folder) and then run,\n\n\n```R\n\n#-------------\n# on a Unix OS\n#-------------\n\nsetwd('/your_folder/fastText/')\nRcpp::compileAttributes(verbose = TRUE)\nsetwd('/your_folder/')\nsystem(\"R CMD build fastText\")\nsystem(\"R CMD INSTALL fastText_1.0.1.tar.gz\")\n\n\n#------------------\n# on the Windows OS  \n#------------------\n\nsetwd('C:/your_folder/fastText/')\nRcpp::compileAttributes(verbose = TRUE)\nsetwd('C:/your_folder/')\nsystem(\"R CMD build fastText\")\nsystem(\"R CMD INSTALL fastText_1.0.1.tar.gz\")\n\n```\n\u003cbr\u003e\n\nUse the following link to report bugs/issues (for the R package port),\n\u003cbr\u003e\u003cbr\u003e\n\n[https://github.com/mlampros/fastText/issues](https://github.com/mlampros/fastText/issues)\n\n\u003cbr\u003e\n\n### **Citation:**\n\nIf you use the **fastText** R package in your paper or research please cite both **fastText** and the **original articles / software** `https://CRAN.R-project.org/package=fastText`:\n\n\u003cbr\u003e\n\n```R\n@Manual{,\n  title = {{fastText}: Efficient Learning of Word Representations and\n    Sentence Classification using R},\n  author = {Lampros Mouselimis},\n  year = {2021},\n  note = {R package version 1.0.3},\n  url = {https://CRAN.R-project.org/package=fastText},\n}\n```\n\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlampros%2Ffasttext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlampros%2Ffasttext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlampros%2Ffasttext/lists"}