FrederickRoman / fasttextAPI

Unofficial minified fastetext API. Use it to run NLP DL models that require word embeddings on the client-side.

Home Page:https://www.fasttextapi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Unofficial minified fastetext API. Use it to run NLP DL models that require word embeddings on the client-side.

https://www.fasttextapi.com

License:MIT License


Languages

Language:TypeScript 99.0%Language:JavaScript 1.0%