-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor: update SDK naming and API endpoints #61
Conversation
any_parser/__init__.py
Outdated
|
||
__all__ = ["AnyParser", "ModelType"] | ||
__all__ = ["AnyParser"] | ||
|
||
__version__ = "0.0.17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update to 0.0.18 for init.py and pyproject.toml to 0.0.18.
any_parser/any_parser.py
Outdated
EXTRACT_TABLES = "extract_tables" | ||
EXTRACT_KEY_VALUE = "extract_key_value" | ||
EXTRACT_RESUME_KEY_VALUE = "extract_resume_key_value" | ||
PARSE = "file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- update this to parse.
- update CDK to include parse / extract type. parse or extract to have its dedicated folder.
- If type does not exist, in CDK raise exception.
return result["json"] | ||
elif "resume_extraction" in result: | ||
return result["resume_extraction"] | ||
elif "pii_extraction" in result: | ||
return result["pii_extraction"] | ||
elif "markdown" in result: | ||
markdown_list = result["markdown"] | ||
return "\n".join(markdown_list) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update CDK to make sure each result has same key. If same key does not work, use its corresponding key as the api name.
examples/async_example.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async_parse_....ipynb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async_extract_key_value.ipynb
examples/docx_to_markdown.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async_parse_docx.ipynb
examples/image_to_key_value.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract_key_value_png.ipynb
examples/image_to_markdown.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parse_png.ipynb
examples/pdf_to_key_value.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract_key_value_pdf.ipynb
examples/pdf_to_markdown.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parser_pdf.ipynb
examples/sync_example.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to its corresponding names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No description provided.