Skip to content

An essay Analyser & Summariser, using Flask for the API and NLTK for the language processing.

Notifications You must be signed in to change notification settings

SAFeSEA/pyEssayAnalyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyEssayAnalyser {#pyEssayAnalyser}

An essay Analyser & Summariser, using Flask for the API and NLTK for the language processing.

Installation

  1. Clone the project locally on your computer.
  2. Make sure pip and virtualenv are installed.
  3. Create a Python virtual environment in the project directory. The Git repository already ignores a venv directory so why not creating it
    $ cd pyEssayAnalyser
    $ virtualenv venv
  1. Activate the virtual environment. On Linux, do the following:
    $ . venv/bin/activate

On Windows, the following will work:

    $ venv\scripts\activate
  1. Install the Python requirements. The project contains a file 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 
  1. Download the NLTK data. NLTK comes with many corpora and trained models, some of which are needed for various aspect of essay analysis. Run the Python interpreter and type the commands:
. >>>	import nltk
. >>>	nltk.download('all')

Try the NLTK installation:

   >>> from nltk.corpus import brown
   >>> brown.words()
   ['The', 'Fulton', 'County', 'Grand', 'Jury', 'said', ...]
  1. Try the Flask installation and configuration:
   $ 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.

Deployment of the EssayAnalyser

   $ python src/pyEssayAnalyser.py
     * Running on http://127.0.0.1:5000/

TO DO.

API

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

About

An essay Analyser & Summariser, using Flask for the API and NLTK for the language processing.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published