Skip to content

2.1.0

Choose a tag to compare

@strangetom strangetom released this 21 Apr 09:22
· 194 commits to master since this release

Warning

This version replaces the floret dependency with numpy.

Numpy was already a dependency of floret, so if you are upgrading from v2.0.0 there should be little impact.

This release overhauls the foundation foods functionality so that ingredient names are matched to entries in the FoodData Central (FDC) database.

  • This update does not change the API. It adds additional fields to FoundationFood objects for FDC ID, category and data type. The text field now returns the description for the matching FDC entry.

  • Beware that enabling this functionality causes the parse_ingredient function to be much slower than when disabled (default).

    foundation_foods=False (default) foundation_foods=True
    Sentences per second ~1500 ~20
  • This functionality works entirely offline.

  • See the foundation foods page of the docs for specifics.