├── graphCache ├── Category1961births.txt ├── CategoryLivingpeople.txt ├── CategoryMalefeminists.txt ├── CategoryAmericanfeminists.txt ├── CategoryGrammyAwardwinners.txt ├── CategoryIllinoisDemocrats.txt ├── CategoryWritersfromChicago.txt ├── CategoryAfricanAmericanfeminists.txt ├── CategoryAmericanNobellaureates.txt ├── CategoryAmericanfeministwriters.txt ├── CategoryAmericanlegalscholars.txt ├── CategoryHarvardLawSchoolalumni.txt ├── CategoryIllinoisStateSenators.txt ├── CategoryOccidentalCollegealumni.txt ├── CategoryPoliticiansfromChicago.txt ├── CategoryPunahouSchoolalumni.txt ├── CategoryWashingtonDCDemocrats.txt ├── Category20thcenturyAmericanwriters.txt ├── Category21stcenturyAmericanwriters.txt ├── CategoryAmericancivilrightslawyers.txt ├── CategoryAmericanpoliticalwriters.txt ├── CategoryColumbiaUniversityalumni.txt ├── CategoryNobelPeacePrizelaureates.txt ├── Category21stcenturyAmericanpoliticians.txt ├── CategoryAfricanAmericannonfictionwriters.txt ├── CategoryProgressivismintheUnitedStates.txt ├── CategoryUnitedStatesSenatorsfromIllinois.txt ├── CategoryDemocraticPartyUnitedStatesSenators.txt ├── CategoryUnitedStatespresidentialcandidates2008.txt └── CategoryUnitedStatespresidentialcandidates2012.txt ├── templates ├── js │ ├── scripts.js │ ├── cat.js │ ├── new │ ├── gameController.js │ ├── bootstrap.min.js │ └── jquery-2.2.1.min.js ├── css │ ├── greybg.png │ ├── source.gif │ ├── entity.css │ ├── game.css │ ├── demo.css │ └── header-search.css ├── header.html ├── game.html ├── entity.html └── index.html ├── user-config.py ├── Report.pdf ├── algorithm_test.pyc ├── Automatic Trivia Fact Extraction from Wikipedia.pdf ├── Automatic Trivia Fact Extraction from Wikipedia.pptx ├── wiki_parser_test.py ├── input.txt ├── outputCache ├── Narendra Modi.txt ├── Kylie Jenner.txt ├── Napoleon.txt ├── Heath Ledger.txt ├── Johnny Depp.txt ├── Selena Gomez.txt ├── John Cena.txt ├── Will Smith.txt ├── Nikola Tesla.txt ├── Hugh Jackman.txt ├── Dwayne Johnson.txt ├── Barack Obama.txt ├── Steve Jobs.txt ├── Donald Trump.txt ├── Cristiano Ronaldo.txt ├── Lionel Messi.txt ├── Michael Jordan.txt ├── Bill Clinton.txt ├── Bill Gates.txt └── Albert Einstein.txt ├── graph_plot_test.py ├── algorithm_test.py ├── wiki_trivia_metric_calculator_test.py ├── batchRun.py ├── Util.py ├── README.md ├── wiki_trivia_metric_calculator.py ├── wiki_parser.py ├── app.py ├── wiki2plain.py ├── graphplot.py ├── algorithm_wrapper.py └── topEntityList.txt /graphCache/Category1961births.txt: -------------------------------------------------------------------------------- 1 | 3.59896368235 2 | 0.256865465366 3 | -------------------------------------------------------------------------------- /graphCache/CategoryLivingpeople.txt: -------------------------------------------------------------------------------- 1 | 3.59998122273 2 | 0.263733125918 3 | -------------------------------------------------------------------------------- /graphCache/CategoryMalefeminists.txt: -------------------------------------------------------------------------------- 1 | 3.29168891832 2 | 0.296558668133 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAmericanfeminists.txt: -------------------------------------------------------------------------------- 1 | 3.39655266734 2 | 0.320812397956 3 | -------------------------------------------------------------------------------- /graphCache/CategoryGrammyAwardwinners.txt: -------------------------------------------------------------------------------- 1 | 3.42788864576 2 | 0.375148367063 3 | -------------------------------------------------------------------------------- /graphCache/CategoryIllinoisDemocrats.txt: -------------------------------------------------------------------------------- 1 | 2.84799865402 2 | 0.346561937927 3 | -------------------------------------------------------------------------------- /graphCache/CategoryWritersfromChicago.txt: -------------------------------------------------------------------------------- 1 | 3.40208758013 2 | 0.282722990957 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAfricanAmericanfeminists.txt: -------------------------------------------------------------------------------- 1 | 3.15553536749 2 | 0.3539173717 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAmericanNobellaureates.txt: -------------------------------------------------------------------------------- 1 | 3.38539099884 2 | 0.371163385481 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAmericanfeministwriters.txt: -------------------------------------------------------------------------------- 1 | 3.299943801 2 | 0.35006575792 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAmericanlegalscholars.txt: -------------------------------------------------------------------------------- 1 | 3.02761723031 2 | 0.324750554923 3 | -------------------------------------------------------------------------------- /graphCache/CategoryHarvardLawSchoolalumni.txt: -------------------------------------------------------------------------------- 1 | 2.99806289415 2 | 0.331739093367 3 | -------------------------------------------------------------------------------- /graphCache/CategoryIllinoisStateSenators.txt: -------------------------------------------------------------------------------- 1 | 2.83001610309 2 | 0.348345719256 3 | -------------------------------------------------------------------------------- /graphCache/CategoryOccidentalCollegealumni.txt: -------------------------------------------------------------------------------- 1 | 3.18192690806 2 | 0.300249512786 3 | -------------------------------------------------------------------------------- /graphCache/CategoryPoliticiansfromChicago.txt: -------------------------------------------------------------------------------- 1 | 2.83413795426 2 | 0.349319595416 3 | -------------------------------------------------------------------------------- /graphCache/CategoryPunahouSchoolalumni.txt: -------------------------------------------------------------------------------- 1 | 3.16319862597 2 | 0.423239645371 3 | -------------------------------------------------------------------------------- /graphCache/CategoryWashingtonDCDemocrats.txt: -------------------------------------------------------------------------------- 1 | 2.65796328221 2 | 0.315841688909 3 | -------------------------------------------------------------------------------- /graphCache/Category20thcenturyAmericanwriters.txt: -------------------------------------------------------------------------------- 1 | 3.26171817564 2 | 0.288146444452 3 | -------------------------------------------------------------------------------- /graphCache/Category21stcenturyAmericanwriters.txt: -------------------------------------------------------------------------------- 1 | 3.13241906666 2 | 0.309234097347 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAmericancivilrightslawyers.txt: -------------------------------------------------------------------------------- 1 | 3.08642965808 2 | 0.318738407932 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAmericanpoliticalwriters.txt: -------------------------------------------------------------------------------- 1 | 2.86260721879 2 | 0.319162353965 3 | -------------------------------------------------------------------------------- /graphCache/CategoryColumbiaUniversityalumni.txt: -------------------------------------------------------------------------------- 1 | 3.13456055532 2 | 0.296431555391 3 | -------------------------------------------------------------------------------- /graphCache/CategoryNobelPeacePrizelaureates.txt: -------------------------------------------------------------------------------- 1 | 3.06428102246 2 | 0.384652304756 3 | -------------------------------------------------------------------------------- /templates/js/scripts.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $('#header').load('header.html'); 3 | }); -------------------------------------------------------------------------------- /graphCache/Category21stcenturyAmericanpoliticians.txt: -------------------------------------------------------------------------------- 1 | 2.83968454834 2 | 0.354187152534 3 | -------------------------------------------------------------------------------- /graphCache/CategoryAfricanAmericannonfictionwriters.txt: -------------------------------------------------------------------------------- 1 | 3.08243947584 2 | 0.317478634573 3 | -------------------------------------------------------------------------------- /graphCache/CategoryProgressivismintheUnitedStates.txt: -------------------------------------------------------------------------------- 1 | 2.92746584716 2 | 0.306349072023 3 | -------------------------------------------------------------------------------- /graphCache/CategoryUnitedStatesSenatorsfromIllinois.txt: -------------------------------------------------------------------------------- 1 | 2.68644352685 2 | 0.368238730453 3 | -------------------------------------------------------------------------------- /graphCache/CategoryDemocraticPartyUnitedStatesSenators.txt: -------------------------------------------------------------------------------- 1 | 2.85705161428 2 | 0.348321603886 3 | -------------------------------------------------------------------------------- /graphCache/CategoryUnitedStatespresidentialcandidates2008.txt: -------------------------------------------------------------------------------- 1 | 2.49052623705 2 | 0.370905574485 3 | -------------------------------------------------------------------------------- /graphCache/CategoryUnitedStatespresidentialcandidates2012.txt: -------------------------------------------------------------------------------- 1 | 2.52395241891 2 | 0.354958404291 3 | -------------------------------------------------------------------------------- /user-config.py: -------------------------------------------------------------------------------- 1 | family = 'wikipedia' 2 | mylang = 'en' 3 | usernames['wikipedia']['en'] = u'ExampleBot' 4 | -------------------------------------------------------------------------------- /Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bondeanikets/Automatic-Trivia-Fact-Extraction-from-Wikipedia/master/Report.pdf -------------------------------------------------------------------------------- /algorithm_test.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bondeanikets/Automatic-Trivia-Fact-Extraction-from-Wikipedia/master/algorithm_test.pyc -------------------------------------------------------------------------------- /templates/css/greybg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bondeanikets/Automatic-Trivia-Fact-Extraction-from-Wikipedia/master/templates/css/greybg.png -------------------------------------------------------------------------------- /templates/css/source.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bondeanikets/Automatic-Trivia-Fact-Extraction-from-Wikipedia/master/templates/css/source.gif -------------------------------------------------------------------------------- /Automatic Trivia Fact Extraction from Wikipedia.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bondeanikets/Automatic-Trivia-Fact-Extraction-from-Wikipedia/master/Automatic Trivia Fact Extraction from Wikipedia.pdf -------------------------------------------------------------------------------- /Automatic Trivia Fact Extraction from Wikipedia.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bondeanikets/Automatic-Trivia-Fact-Extraction-from-Wikipedia/master/Automatic Trivia Fact Extraction from Wikipedia.pptx -------------------------------------------------------------------------------- /wiki_parser_test.py: -------------------------------------------------------------------------------- 1 | import wiki_parser 2 | 3 | if __name__ == "__main__": 4 | wiki_parser = wiki_parser.WikiParser() 5 | wiki_parser.getEntityTokens("Barack Obama") 6 | wiki_parser.getEntityforCategory("Category:Writers from Chicago") 7 | print(wiki_parser.getCategoryForEntity("Lionel Messi")) 8 | 9 | -------------------------------------------------------------------------------- /input.txt: -------------------------------------------------------------------------------- 1 | Barack Obama 2 | Lionel Messi 3 | Donald Trump 4 | Bill Gates 5 | Hugh Jackman 6 | Narendra Modi 7 | Steve Jobs 8 | Dwayne Johnson 9 | Selena Gomez 10 | Heath Ledger 11 | John Cena 12 | Michael Jordan 13 | Johnny Depp 14 | Kylie Jenner 15 | Will Smith 16 | Napoleon 17 | Nikola Tesla 18 | Bill Clinton 19 | Albert Einstein 20 | Cristiano Ronaldo -------------------------------------------------------------------------------- /outputCache/Narendra Modi.txt: -------------------------------------------------------------------------------- 1 | Lok Sabha members from Uttar Pradesh:1.0714983735235366 2 | 16th Lok Sabha members:1.0535753617707835 3 | Indian Hindus:0.86598070758395718 4 | 1950 births:0.85492686291472741 5 | Living people:0.82131765530393031 6 | Gujarati people:0.79342593478171353 7 | 21st-century Indian politicians:0.76548174931028889 8 | Members of the Gujarat Legislative Assembly:0.45883239958151406 9 | -------------------------------------------------------------------------------- /templates/js/cat.js: -------------------------------------------------------------------------------- 1 | var index = 0; 2 | var data = $('#my-data').data("name"); 3 | $(function() { 4 | for(var i = 0, size = 10; i < size ; i++){ 5 | $('#catList').append('