An essay Analyser & Summariser, using Flask for the API and NLTK for the language processing.
venv
directory so why not creating it $ cd pyEssayAnalyser
$ virtualenv venv
$ . venv/bin/activate
On Windows, the following will work:
$ venv\scripts\activate
stable-req.txt
created with pip. Use it to install - in the virtual environment -
all the packages needed for the system to work. $ pip install -r stable-req.txt
. >>> import nltk
. >>> nltk.download('all')
Try the NLTK installation:
>>> from nltk.corpus import brown
>>> brown.words()
['The', 'Fulton', 'County', 'Grand', 'Jury', 'said', ...]
$ python src/TestFlask.py
* Running on http://127.0.0.1:5000/
Head over to http://127.0.0.1:5000/ in your browser, you should see the Hello World greetings.
$ python src/pyEssayAnalyser.py
* Running on http://127.0.0.1:5000/
TO DO.
TO DO.
Method | URL | Action |
---|---|---|
GET | / | Hello world |
POST | /api/essay | add a new essay to the system and return various analytics |
GET | /api/essay/UID | Retrieve essay with id = UID |
PUT | /api/essay/UID | Update essay with id = UID |
GET | /api/essay/UID/analytics | Retrieve various analytics on the essay with id = UID |