Code Monkey home page Code Monkey logo

stanfordreq's Introduction

stanfordreq

This module is a parser for Stanford course descriptions that extracts course requirements.

Installation

$ python setup.py install

Usage

Usage information can be printed with:

$ python -m stanfordreq -h

More information is available in the module docstrings.

Testing

Test cases can be run with py.test:

$ py.test

stanfordreq's People

Contributors

bgirardeau avatar

Stargazers

 avatar  avatar

Watchers

 avatar

stanfordreq's Issues

Add additional test cases

Test cases are somewhat limited and chosen ad-hoc currently. Additional test cases (particularly ensuring good coverage over popular classes) would ensure changes for one type of bug don't cause worse overall performance.

AP score numbers are interpreted as classes

Standalone numbers are usually classes with an implicit department, but in some cases they are instead AP scores. This leads to an incorrect prerequisite of CHEM 4 for CHEM 31X when parsing this description:

Prerequisites: AP chemistry score of 5 or passing score on chemistry placement test, and AP Calculus AB score of 4 or Math 20 or Math 41

Non-standard department abbreviation/capitalization is ignored

In some cases, departments are in a nonstandard form, specifically not all-caps or using an abbreviation. Fixing this in the general case will likely require better awareness of what are valid departments in extract_courses to avoid too many false positives.

See examples below:

  • In PHYSICS 120, PHYSICS is abbreviated as PHYS:

Prerequisites: PHYSICS 43 or PHYS 63; MATH 52 and MATH 53

  • In CHEM 31X, MATH is written as Math

Prerequisites: AP chemistry score of 5 or passing score on chemistry placement test, and AP Calculus AB score of 4 or Math 20 or Math 41

Add distinction between and/or for requirements

There is no distinction given between requirements that are equivalent ("PHYSICS 43 or 63") and those that are both necessary ("MATH 52 and 53") for a course. For potential use cases like automated scheduling, this information would be useful.

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.