2.1.0
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
FoundationFoodobjects for FDC ID, category and data type. Thetextfield now returns the description for the matching FDC entry. -
Beware that enabling this functionality causes the
parse_ingredientfunction 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.