Test your knowledge of latest happenings around the world
We live in a world of information.By 2025, it’s estimated that 463 exabytes of data will be created each day globally(https://www.weforum.org/agenda/2019/04/how-much-data-is-generated-each-day-cf4bddf29f/) .While we are deluded with humungous amount of information, do we really know what actually matters?Is our knowldege base getting populated with fake news and status updates or does real news actually reach us. Is there a way that can be tested?
The project aims to develop a Web API which would serve as a quiz master to test the knowledge of indviduals on the current happenings from valid news sources.We are using an amalgamation of https://newsapi.org/ and some basic information retrieval techniques to build a quiz master which throws infront of you some simple & fun questions to test your knowledge of what is happening.It might be something as direct as --------- won the Australian open or it might be something a bit more complicated like ---------- helped the other players win the tournament. Each question would have four options .Hence it is fun to work with and learn
How to use it
Currently its a simplistic API with which you can interface using a jupyter notebook or a python scoript the notebook Notebook_develop_test.ipynb has examples on how you can get started with using it.There is also an example in Example.py.The script uses spacy to do a named entity recognition on the news titles extracted .The model is downloaded within the source script
A test run
After setting up your environment run the command python Example.py
You would get a first glimpse at the quiz generated:
- The entity of the fill in the blank is GPE
- Your first question is A Super Bowl Sports Business Extravaganza from ------------
- Your options are ['Hong Kong', 'Russia', 'Wuhan', 'Miami']
- The correct answer is Miami
Dependencies
- Python 3.7
- Spacy 2.2.3
- spacy "en_core_web_lg" model for Named entity recognition
License
MIT License