Open Source: Simple ML Model for Sentence Similarity Score

in #programming2 years ago

Repo: https://github.com/DoctorLai/SimilarString

SimilarString

Compute the score of similarity between two strings.

Build

docker build -t mlserver .

Run

Bind to Port 5000.
docker run -p 5000:5000 -itd --name mlserver mlserver

Logs

docker logs mlserver or docker logs -f mlserver

Usage

curl -X POST --data '{"s1":"this is a book", "s2":"that is a car"}' http://127.0.0.1:5000

{"score": 0.22442716360092163}

image.png

If you find this useful - please consider buy me a coffee, thanks! https://www.buymeacoffee.com/y0BtG5R

https://helloacm.com

Coin Marketplace

STEEM 0.36
TRX 0.12
JST 0.039
BTC 70112.96
ETH 3549.99
USDT 1.00
SBD 4.71