Skip to content

FrederickRoman/fasttextAPI

Repository files navigation

Unofficial fastText API

Unofficial fastText API logo

Fastext API is an unnoficial API for Facebook's fastText word embedding used under a public license

Resources

POST /api/word/ >130,000 words Note: Due budget/memory constraints this version is a subset of fastText.

Routes

POST /api/word/ body:{words:['list', 'of', 'words']}

fastText API iPad screenshot

Live website

See fastTextApi.

Main libraries used for this project

  • Next.js (TS)
  • MUI

Project setup

npm install

Compiles and hot-reloads

npm run dev

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Attributions

The data was taken from fastText public repository where they are licensed under CC BY-SA 3.0.

The size of the data was reduced. Only the most common word embeddings were extracted. Then the embeddings were reduced with PCA.