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
-
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_index
attribute to IngredientText objects, indicating the index of the token that starts the IngredientText.Improve detection of composite amounts in sentences.
Add
quantity_fractions
keyword argument toparse_ingredient
. When True, thequantity
andquantity_max
fields ofIngredientAmount
objects will befractions.Fraction
objects 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