1.3.0 #26
strangetom
announced in
Announcements
1.3.0
#26
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Processing
Various minor improvements to feature generation.
Add PREPARED_INGREDIENT flag to IngredientAmount objects. This is used to indicate if the amount refers to the prepared ingredient (
PREPARED_INGREDIENT=True) or the unpreprared ingredient (PREPARED_INGREDIENT=False).Add
starting_indexattribute to IngredientText objects, indicating the index of the token that starts the IngredientText.Improve detection of composite amounts in sentences.
Add
quantity_fractionskeyword argument toparse_ingredient. When True, thequantityandquantity_maxfields ofIngredientAmountobjects will befractions.Fractionobjects instead of floats. This allows fractions such as 1/3 to be represented exactly. The default behaviour is whenquantity_fractions=False, where quantities are floats as previously. For exampleModel
This discussion was created from the release 1.3.0.
Beta Was this translation helpful? Give feedback.
All reactions