Web Application of WordNet with Flask Framework.
Flask
is a micro web framework written in Python
and based on the Werkzeug toolkit and Jinja2 template engine. It is BSD licensed. Applications that use the Flask framework include Pinterest, LinkedIn, and the community web page for Flask itself.
here you can easily learn how to create an webapp using Flask Framework. (best that I have read)
-
Clone this repository
and go to root directory (~wordnet-webapp) andrun
this script$pip install -r requirements.txt
-
Then
run
this script$python run.py
-
Then browse at the address that is provided at your
console
.
OR using Dockerfile
-
Pull
the Docker image from docker hub using below script$docker pull anuragkumarak1995/wordnet:latest
-
Then
run
the image container, application will be hosted on port 5000.$docker container run --rm --name wrdnt -p "5000:5000" -d anuragkumarak1995/wordnet:latest
-
To
test
that container is working look into docker container logs.
/api/net/<word>
fill root
with a word that is present in network_sample
file, and this link will produce a json list of words at 1 - depth from this word as root in the network.
{
'words':['word1','word2','word3','word4',...]
}
by @Anurag