Replies: 5 comments 2 replies
-
Hi fellow dutchman! |
Beta Was this translation helpful? Give feedback.
-
This is intended behavior. The parser only uses the note to parse ingredients out, so it's only expected that the note field is being used. There isn't currently a way to selectively parse ingredients. There may be in the future, but it isn't a priority for me at the moment.
Not at the moment. I'd be open to a PR to support this through and ENV variable though.
Yes, you can view all Foods and Units at In general I think the non-english experience is sub-par for a large portion of the application. I'm hoping someone from the community would be up for taking on some of the tasks to improve that experience in the application. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the super quick reply @hay-kot (And hallo @zierbeek !). I found the 'foods and units'.
On the first point, either I am misunderstanding your reply or I did not correctly explain my situation because this behavior feels very strange to me as intended behavior. At the very least I'll try to explain again using images. So after importing with 'ingredients off' by default (I fear that is too much for my parents!) I can edit the recipe in order to turn ingredients on and end up with this situation: Next, I press the 'parse' button at the bottom of the ingredient list and switch the parser to brute and press parse all, which results in this: For reference when using the brute parser from 'settings' with the same input: If you did in fact understand my situation correctly then I would like to kindly ask why you feel the current situation should be the intended behavior instead of adding the 'middelgroot' unit. Perhaps that will help me understand the design decision. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Also need to chip into the hymn of praise: Really, really awesome project and work! As a German user I'm to improve some of the rough edges for our daily usage. Therefore I'm currently trying to estimate what it would take, to provide natural language processors for other languages (i.e. German in my case) as well. Yet I do understand, that the output in https://github.com/mealie-recipes/nlp-model is the result of some processing with https://github.com/mealie-recipes/crfpp on some dataset. But I was not able to spot the source/location of the "New York Times" dataset mentioned in https://nightly.mealie.io/contributors/guides/ingredient-parser/ I also see a poor-man hardcoded, language-specific preprocessing steps, which I think can be tackled easily. Can you outline in a few bullet points the model creation aspect you applied so far for English? Thanks lot! |
Beta Was this translation helpful? Give feedback.
-
There have been many improvements to the brute parser since this discussion was opened, so I'll go ahead and close it. FYI your last-used parser will be the default for you now as well |
Beta Was this translation helpful? Give feedback.
-
First of all, I only recently came upon this project and I must say I am really impressed!
I am currently running version v1.0.0b. As I am not from an English-speaking country the current version of the natural language processor is unfortunately not very helpful. Now I am aware that it is not easy to add another language so I plan to use the Brute processor. When trying to enter recipes I came upon some strange issues, however.
When experimenting with the parser under settings, entering the phrase:
'1 middelgroot ei' (hello fellow dutch people! English: '1 medium-sized egg'
Gets correctly split into:
Quantity: 1 Unit: Middelgroot Food: ei
However, when I add a recipe from a link, edit the ingredient list, and switch the parser to brute, then press 'parse all' the units disappear and I am left with just the quantity and food. From my experiment with the parser, I would conclude that the issue is not the parser itself. Am I missing something here or is this a bug in the beta release perhaps? (I noticed a small note saying 'add x food', but nothing similar for units)
Some related questions: Can I change the parser to brute by default instead of having to manually switch it every time?
Is there some way to get an overview of all units/foods, similar to what the tandoor app has for example? I have been pressing a lot of buttons but have been unable to find it so far.
Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions