Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage documentation and examples #30

Open
lizozom opened this issue Feb 13, 2023 · 3 comments
Open

Usage documentation and examples #30

lizozom opened this issue Feb 13, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@lizozom
Copy link

lizozom commented Feb 13, 2023

Hi, I would love to integrate this with https://github.com/hhursev/recipe-scrapers, to provide parsed ingredients when processing recipes.
Could you provide a couple of examples on how to use this parser?

Thank you!

@lizozom lizozom added the enhancement New feature or request label Feb 13, 2023
@jayaddison
Copy link
Member

Hi @lizozom!

I saw your pull request over at recipe-scrapers - very cool :)

This repository makes fairly extensive use of a library called ingreedy-py - the quickest way to get started is to look at some of the test cases in that library. For example, this one parses the input text 1.0 cup flour into a dictionary containing (pseudocode) amount: 1, unit: cup, ingredient: flour.

Does that help, or am I dodging the question?

(I haven't gotten around to writing much documentation for this repository, and bringing up the infrastructure for these microservices isn't as easy as it should be.. plenty of work to do)

@lizozom
Copy link
Author

lizozom commented Feb 13, 2023

Gotcha, I will take a look.
I'm just starting to realize there's dozens of ingredient parser libraries. 😅

@jayaddison
Copy link
Member

There are at least a few, yep :) Good to have options.

Have you discovered https://github.com/mtlynch/ingredient-phrase-tagger/ ? (it's a machine-learning-based approach, originating at the NYTimes; with some nice blog posts by the maintainer about the process of updating the codebase)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants