Automatic quiz generation system
This project, built by Sachit Mishra (@smishra2) and Jonathan Yu (@jonathan-howe-yu) in fulfillment of our degree requirements at the University of Florida, is a web API and chrome extension for quiz generation. Use QuizGen to automatically generate quizzes based on factual text content. Use the chrome extension on any web page to
- Stanford CoreNLP
- Alchemy Language REST API
- Flask Python Server
- AngularJS (for data binding and DOM manipulation in chrome extension)
-
GET /jstest?=websiteURL
Returns a sample JSON response, ignores the websiteURL.
-
GET /quizme?=websiteURL
This is the main API call. Returns JSON encoded questions array (see below).
Sample Response:
{ "questions": [ { "question": "What is the question?", "sentence": "This is the sentence from which this question originated." }, { "question": "Was Amy a good student?", "sentence": "Amy was a good student." } ] }
To build, please have Java (1.6 and up), Gradle 2.0, and Flask installed. Navigate to the QuizGen directory and type gradle build
.
To run, navigate to the QuizGen main directory, and use:
python QuizGenServer.py
As this Chrome extension is unpackaged, you will need to enable Developer mode in your Chrome browser. To do this:
Chrome > Settings > Extensions > Check Developer mode box
Click Load unpacked extension
> Browse to chromeext dir > Click OK
With the server running (python QuizGenServer.py
), simply click the Chrome extension browser action button to the right of the address bar and prepare to be amazed...