Run NLP on an ingredient “note”? #2285
-
I have a bunch of json recipes with the ingredients as “note” fields. Is there a way to run NLP on these during or after using the API to enter them into mealie? My json is certainly not quite complete, so maybe this already works and I just didn’t fully implement the schema. For example, I’m unclear if I need to set both the “disableAmount” and “quantity” fields when starting with a note-only recipe. |
Beta Was this translation helpful? Give feedback.
Answered by
michael-genson
Mar 24, 2023
Replies: 1 comment 6 replies
-
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
jecorn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
disableAmount
field is an indicator that, when flagged, tells Mealie to ignore everything other than the note field. This is how recipe parsers generally work (they extract the full ingredient as a single string of text and we put the result in the note)So, if you're creating a recipe from a JSON file:
disableAmount
totrue
(this should be default)If you're going to parse the ingredient notes using the NLP parser, set
disableAmount
tofalse
and go through the parsing workflow in …