By using Gensim, a Word2Vec model trained and tested on Flask REST API.
$ pip install -U gensim
$ pip install Flask
$ pip install -U nltk
Dataset Categories
- Health
- Sport
- Religious
- Economy
- Politics
$ python3 api.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
To run REST API, call the following url.
http://127.0.0.1:5000/?word=futbol