From 5cfd092fa2e7008835d0882cb46cb45aa302702d Mon Sep 17 00:00:00 2001 From: John Pope Date: Fri, 23 Dec 2016 06:29:14 +1100 Subject: [PATCH] Update README.md add google sample --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 76365a0..29d1927 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,12 @@ pip2 install -r requirements.txt * Launching the service ``` python word2vec-api --model path/to/the/model [--host host --port 1234] +or +python word2vec-api.py --model /path/to/GoogleNews-vectors-negative300.bin --binary BINARY --path /algorithm --host 0.0.0.0 --port 5000 ``` + + * Example calls ``` curl http://127.0.0.1:5000/word2vec/n_similarity?ws1=Sushi&ws1=Shop&ws2=Japanese&ws2=Restaurant