GithubHelp home page GithubHelp logo

9614priya / thegadflyproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vinuabraham/thegadflyproject

0.0 0.0 0.0 7.49 MB

The core NLP library for automatic question generation

Python 100.00%

thegadflyproject's Introduction

TheGadflyProject

by the VANDALs

Description

To create a robust, automatic, extensible question generation service.

Requirements

How to use as a library

  1. Add the Gadfly Project Repository as a git submodule to your project's git repository git submodule add https://github.com/TheGadflyProject/TheGadflyProject.git
  2. Navigate to TheGadflyProject directory cd ./TheGadflyProject
  3. Install Python requirements pip install -r requirements.txt
  4. Install Spacy Modules python -m spacy.en.download
  5. You can create generate gapfill questions by:
  • adding from TheGadflyProject.gadfly.gap_fill_generator import GapFillGenerator to your python file
  • instantiating the GapFillGenerator by passing it the input text of your choice g = GapFillGenerator("This is my input texts. "It will probably be much longer than this, hopefully" said Daniel.")
  • You can access the questions by using questions attribute on the generator object for q in g.questions: print(q)
  1. You can create generate multiple choice questions by:
  • adding from TheGadflyProject.gadfly.gap_fill_generator import MCQGenerator to your python file
  • instantiating the GapFillGenerator by passing it the input text of your choice g = MCQGenerator("This is my input texts. "It will probably be much longer than this, hopefully" said Daniel.")
  • You can access the questions by using questions attribute on the generator object for q in g.questions: print(q)

How to Contribute

Review the section on Feature Branch Workflow to get an overview of the git workflow that we use for this project.

Install Requirements

  1. Clone the repo git clone <repo url>
  2. (optionally) Create virtualenv
  3. Install Python requirements pip install -r requirements.txt
  4. Install spaCy Modules python -m spacy.en.download

Add a feature, fix a bug

Create a new branch for the feature that you are working on. You should not be developing on the master branch. "Feature branches should have descriptive names, like animated-menu-items or issue-#1061. The idea is to give a clear, highly-focused purpose to each branch."
git checkout -b <feature_name>

Focus on committing your code often to the branch. Each commit should have a useful commit message that explains what has been commited.
git add <all_files_to_include_in_commit>
git commit -m "<useful_commit_message>

When you feel like you have completed working on your feature, review the commits on your branch.
git log --oneline

During this step, you may recognize that several commits can/should be collapsed into one commit. You can/should edit your git commit history by using the following command. Read the following link on git rebase -i. Combine/split your commits into an easy to follow history.
git rebase -i

Push your branch to remote.
git push origin <branch_name>

Submit a pull request by navigating to the project Github page and submitting a pull request (more instructions here). Give your project teammates a few days to review your pull requests and address any questions or feedback that they have on your code and submit additional pull requests as necessary. Once your pull request has been accepted, it will merged for you.

thegadflyproject's People

Contributors

danielsgriffin avatar vijayv avatar anand- avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.