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

Missing [] around properties in README #8

Open
codeananda opened this issue Jul 28, 2023 · 0 comments
Open

Missing [] around properties in README #8

codeananda opened this issue Jul 28, 2023 · 0 comments

Comments

@codeananda
Copy link

This code block from the README didn't work for me

from doctran import ExtractProperty

properties = ExtractProperty(
    name="millenial_or_boomer", 
    description="A prediction of whether this document was written by a millenial or boomer",
    type="string",
    enum=["millenial", "boomer"],
    required=True
)
document = await document.extract(properties=properties).execute()

Had to do

document = await document.extract(properties=[properties]).execute()

instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant