Skip to content

jstraub/nutritional

Repository files navigation

Nutritional is a collection of scripts to interact with the USDA nutrition database.

  • nutriParser parses the raw USDA DB files and populates a SQLite database. You can download the resulting DB here.
  • nutriCorpus computes a list of unique terms from all food item descriptions and their frequency and writes them to a text file ./unique_terms.txt.
  • nutriRanking uses the SQLite DB as well as the term frequency file to compute a decluttered ranking of food items for each nutrient in nutrientsBase.txt. The results of this script can be found on my blog.

The USDA DB parser was inspired by the following projects: nutrient-db, django-usda and nutritionparser.

About

scripts to work with the USDA food database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages