Skip to content

asbroad/eecs-337-nlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Team 3 : Alex Broad, Seth McCammon, Zavier Henry, Taoran Yue

EECS 337 - Project 1

There are 3 different aspects of this project (all run with Python 2.7 from the project_01/src/ directory)

  1. The main project which will run and output a .json file to be used in the autograder
    • To run (from the src folder) : 'python main.py'.
    • This file has two parameters that need to be set inside the main.py file, at the top of the file there are 'year' and 'save_filename' strings. The year can take the value '2013' or '2015' both must be strings. save_filename can take any name you want and will save the .json file with that name.
  2. The GUI
    • To run (from the src folder) : 'python GUI.py'
    • When it loads up, you will first have to select a year (2013 or 2015). Then you can select an award and press the 'Go' button.
  3. The fun stuff
    • To run (from the src folder) : 'python fun_thing.py'
    • It will ask you for a name, enter the name of an actor/actress that you enjoy and watch it do it's magic!

EECS 337 - Project 2

For the second project, we used Python 2.7

For non-standard packages, we only used NLTK. There are a number of easy ways to install this package depending on your OS. This site explains the options well.

To run the code, the structure of our GitHub repo is the same as Project 1. All code should be run from the project_02/src/ directory.

  1. The main project which will run and output a .json file with the dishes name
    • To run (from the src folder) : 'python main.py'.
    • If you run command above with no other arguments, the program will simply parse the recipe and print the results without making and transformations. If you would like to also apply a transformation, you can supply a second argument which maps to specific transformation, that would look as such:
    • 'python main.py [num]', where [num] is a number from 1-8. The transformations that are applied are defined in the following manor
      • if [num] = 1: transform the recipe to Italian
      • if [num] = 2: transform the recipe to Chinese
      • if [num] = 3: transform the recipe to Vegetarian
      • if [num] = 4: transform the recipe to Pescatarian
      • if [num] = 5: transform the recipe to Low-Fat
      • if [num] = 6: transform the recipe to Low-Sodium
      • if [num] = 7: transform the recipe to serve 2x the original number of people
      • if [num] = 8: transform the recipe to serve 3x the original number of people
    • This will output a file called '[dishes_name].json'
    • To apply multiple transformations to the same recipe, please use the GUI. There you can apply any combination that you would like.
  2. The GUI
    • To run (from the src folder) : 'python gui.py'
    • All of the parameters of the recipe transformations can be set here and run with the GO button
  3. The autograder
    • To run the autograder (from the src folder) : 'python autograder.py'

In addition to the code, you can find pictoral descriptions of our knowledge base and recipe representation in the main project_02/ directory.

The transformations that are possible are:

  • Transform a recipe to either 'italian' or 'chinese'
  • Transform a recipe to either 'vegetarian' or 'pescatarian'
  • Transform a recipe to either 'low-fat' or 'low-sodium'
  • Transform the number of servings (1x, 2x or 3x of what the recipe calls for)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published