Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.15 KB

Readme.md

File metadata and controls

24 lines (16 loc) · 1.15 KB

Word2Vec-api

Rust Coverage Status dependency status GitHub

In-memory HTTP service for https://github.com/DimaKudosh/word2vec

This repository uses an experimental fork of DimaKudosh/word2vec with SIMD extensions.

Installation

Please make sure to set the rust toolchain to nightly first! Then run

git clone https://github.com/jayay/word2vec-api.git
cd word2vec-api
cargo run --release -- path/to/model.bin

Running the Container

The binary listens on port 8000, which will have to be forwarded. The first argument to the binary is the path to the model.

docker run -it -v /path/to/model.bin:/data/model.bin -p 8000:8000 ghcr.io/jayay/word2vec-api:master word2vec-api /data/model.bin