Skip to content

jayay/word2vec-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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