Open famagusta opened 8 years ago
Short answer: probably not; you'll likely have to use an older version of pyparsing
. According to https://github.com/JoshRosen/cmps140_creative_cooking_assistant/blob/master/requirements.txt, it looks like this might have originally used pyparsing 1.5.5, so maybe you can give that a try.
If you're actually interested in doing ingredient list parsing for real, check out fancier approaches like http://open.blogs.nytimes.com/2015/04/09/extracting-structured-data-from-recipes-using-conditional-random-fields
Thanks for that link - looks useful. I was able to tweak the code and write my own grammar for extracting ingredients.
Hi, I was trying to use the nlu package from your project. On trying to use extract_ingredient_parts function i get the following
File "pyparsing_utils.py", line 40, in parseImpl exc = self.myException AttributeError: 'LemmatizedWord' object has no attribute 'myException'
I guess the pyparsing package functions used have all gotten deprecated. Any help would be appreciated since I don't want to rewrite the whole thing.