KeremZaman / semantic-sh

semantic-sh is a SimHash implementation to detect and group similar texts by taking power of word vectors and transformer-based language models (BERT).
MIT License
24 stars 3 forks source link

make a rest service with flask #1

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

Hope you are all well !

Do you think it is possible to make a restful web service of semantic-sh ? or to dockerize it ?

Cheers, X

KeremZaman commented 4 years ago

Hi,

I didn't need such a service when I was coding but it can be a useful feature. It will be done in the next update.

ghost commented 4 years ago

Thanks @KeremZaman

It would be awesome as I work on paper2code.com and it would be useful to find similar abstracts.

When do you think you can find 10 minutes to do it ? I am so excited by the next update :-)

KeremZaman commented 4 years ago

I added simple api server. It can be run standalone or by a WSGI container. I hope you'll get good results, don't avoid to give further feedbacks!

Closed with b4219dcff85e3634bd53426a10474c00c736f092

ghost commented 4 years ago

Hi,

Thanks for this !

I am dockerizing it and making it ready for cpu/gpu deploy ! Will make a PR during the day !

Preview: https://github.com/x0rzkov/semantic-sh

Thanks again !

Cheers, X