All Projects → messense → fasttext-serving

messense / fasttext-serving

Licence: other
fastText model serving service

Programming Languages

rust
11053 projects
python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to fasttext-serving

Shallowlearn
An experiment about re-implementing supervised learning models based on shallow neural network approaches (e.g. fastText) with some additional exclusive features and nice API. Written in Python and fully compatible with Scikit-learn.
Stars: ✭ 196 (+262.96%)
Mutual labels:  fasttext
fastchess
Predicts the best chess move with 27.5% accuracy by a single matrix multiplication
Stars: ✭ 75 (+38.89%)
Mutual labels:  fasttext
ungoliant
🕷️ The pipeline for the OSCAR corpus
Stars: ✭ 69 (+27.78%)
Mutual labels:  fasttext
Pyfasttext
Yet another Python binding for fastText
Stars: ✭ 229 (+324.07%)
Mutual labels:  fasttext
Simple-Sentence-Similarity
Exploring the simple sentence similarity measurements using word embeddings
Stars: ✭ 99 (+83.33%)
Mutual labels:  fasttext
actions-suggest-related-links
A GitHub Action to suggest related or similar issues, documents, and links. Based on the power of NLP and fastText.
Stars: ✭ 23 (-57.41%)
Mutual labels:  fasttext
Wordvectors
Pre-trained word vectors of 30+ languages
Stars: ✭ 2,043 (+3683.33%)
Mutual labels:  fasttext
NLP-paper
🎨 🎨NLP 自然语言处理教程 🎨🎨 https://dataxujing.github.io/NLP-paper/
Stars: ✭ 23 (-57.41%)
Mutual labels:  fasttext
Text Classification TF
用tf实现各种文本分类模型,并且封装restful接口,可以直接工程化
Stars: ✭ 32 (-40.74%)
Mutual labels:  fasttext
chitra
A multi-functional library for full-stack Deep Learning. Simplifies Model Building, API development, and Model Deployment.
Stars: ✭ 210 (+288.89%)
Mutual labels:  model-serving
Pytorch Sentiment Analysis
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
Stars: ✭ 3,209 (+5842.59%)
Mutual labels:  fasttext
fasttextjs
JavaScript implementation of the FastText prediction algorithm
Stars: ✭ 31 (-42.59%)
Mutual labels:  fasttext
fasttext-serving
Serve your fastText models for text classification and word vectors
Stars: ✭ 21 (-61.11%)
Mutual labels:  fasttext
Cw2vec
cw2vec: Learning Chinese Word Embeddings with Stroke n-gram Information
Stars: ✭ 224 (+314.81%)
Mutual labels:  fasttext
fasttext-serverless
Serverless hashtag recommendations using fastText and Python with AWS Lambda
Stars: ✭ 20 (-62.96%)
Mutual labels:  fasttext
Sentence Classification
Sentence Classifications with Neural Networks
Stars: ✭ 177 (+227.78%)
Mutual labels:  fasttext
fdp-modelserver
An umbrella project for multiple implementations of model serving
Stars: ✭ 47 (-12.96%)
Mutual labels:  model-serving
gallery
BentoML Example Projects 🎨
Stars: ✭ 120 (+122.22%)
Mutual labels:  model-serving
german-sentiment
A data set and model for german sentiment classification.
Stars: ✭ 37 (-31.48%)
Mutual labels:  fasttext
serving-pytorch-models
Serving PyTorch models with TorchServe 🔥
Stars: ✭ 91 (+68.52%)
Mutual labels:  model-serving

fasttext-serving

GitHub Actions Crates.io Docker Pulls

fastText model serving service

Installation

You can download prebuilt binary from GitHub releases, or install it using Cargo:

cargo install fasttext-serving

Using Docker:

docker pull messense/fasttext-serving

Usage

$ fasttext-serving --help

USAGE:
    fasttext-serving [OPTIONS] --model <model>

FLAGS:
        --grpc       Serving gRPC API instead of HTTP API
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -a, --address <address>    Listen address [default: 127.0.0.1]
    -m, --model <model>        Model path
    -p, --port <port>          Listen port [default: 8000]
    -w, --workers <workers>    Worker thread count, defaults to CPU count

Serve HTTP REST API

HTTP API endpoint:

POST /predict

Post data should be JSON array of string, for example ["abc", "def"]

CURL example:

$ curl -X POST -H 'Content-Type: application/json' \
     --data "[\"Which baking dish is best to bake a banana bread?\", \"Why not put knives in the dishwasher?\"]" \
     'http://localhost:8000/predict'
[[["baking"],[0.7152988]],[["equipment"],[0.73479545]]]

Serve gRPC API

Run the command with --grpc to serve gRPC API instead of HTTP REST API.

Please refer to gRPC Python client documentation here.

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].