<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: adhv45</title>
    <description>The latest articles on Forem by adhv45 (@adhv45).</description>
    <link>https://forem.com/adhv45</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F390937%2F6b34a7d4-7230-491f-8444-ab9e29eef842.png</url>
      <title>Forem: adhv45</title>
      <link>https://forem.com/adhv45</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/adhv45"/>
    <language>en</language>
    <item>
      <title>QuizzeR</title>
      <dc:creator>adhv45</dc:creator>
      <pubDate>Wed, 20 May 2020 16:50:16 +0000</pubDate>
      <link>https://forem.com/adhv45/quizzer-25gb</link>
      <guid>https://forem.com/adhv45/quizzer-25gb</guid>
      <description>&lt;h2&gt;
  
  
  QuizzeR
&lt;/h2&gt;

&lt;p&gt;A bot which generates Multiple Choice Questions for an input keyword. Fetches information from Wikipedia and analyses the received information using spaCy and NLTK. Generates MCQ type question with 70-80 % accuracy. Implemented in Python, Flask, HTML/CSS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo Link
&lt;/h2&gt;

&lt;p&gt;You will have to run it locally on your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Github Repo Link
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/adhv45" rel="noopener noreferrer"&gt;
        adhv45
      &lt;/a&gt; / &lt;a href="https://github.com/adhv45/QuizzeR" rel="noopener noreferrer"&gt;
        QuizzeR
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;QuizzeR&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Quizzer is an online quiz making bot which fetches information from Wikipedia
and analyses the received information using spaCy and nltk. The accuracy is 70-80 % for questions.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Prerequisites&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;Things you need to install
first get pip for python3 (included env is based on python3.7 so use new env if needed)&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;Debian/Ubuntu : sudo apt-get install python3-pip
arch : sudo pacman -S python-pip
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;python3
libraries required: spacy, flask, Wikipedia, hunspell.
already included wikipedia as there were issues with originel api.
And already included nltk with tokeniser data.&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;first enter virtual env 
    source QUIZZER_DIR/.env/bin/activate
    
install these packages using pip (pip3 for python3):

i.e.
```
    pip3 install -v spacy (do the same for flask, hunspell)
        google if u face some error installing hunspell
        
    download spacy database for english
        python3 -m spacy download en
```
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;using new environment&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;rm -rf QUIZZER_DIR/.env
virtualenv .env
source .env/bin/activate
install wikipedia using pip
    edit .env/lib/pythonX.X/site-packages/wikipedia/wikipedia.py
        aroung&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/adhv45/QuizzeR" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I built it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Search the content from Wikipedia. &lt;/li&gt;
&lt;li&gt;Divide into sections.&lt;/li&gt;
&lt;li&gt;Filter the sentences by length and no. of named entities after than pick two random sentences from each section.&lt;/li&gt;
&lt;li&gt;To make question remove the most important keyword and replace it with a blank string.&lt;/li&gt;
&lt;li&gt;Use similarity to generate options.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Additional Thoughts / Feelings / Stories
&lt;/h2&gt;

&lt;p&gt;It was my first project which we did on our own in a college hackathon.&lt;/p&gt;

</description>
      <category>octograd2020</category>
      <category>showdev</category>
      <category>devgrad2020</category>
      <category>nlp</category>
    </item>
  </channel>
</rss>
