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

refactor: update SDK naming and API endpoints #61

Closed
wants to merge 5 commits into from

Conversation

Sdddell
Copy link
Collaborator

@Sdddell Sdddell commented Nov 15, 2024

No description provided.


__all__ = ["AnyParser", "ModelType"]
__all__ = ["AnyParser"]

__version__ = "0.0.17"
Copy link
Collaborator

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.

EXTRACT_TABLES = "extract_tables"
EXTRACT_KEY_VALUE = "extract_key_value"
EXTRACT_RESUME_KEY_VALUE = "extract_resume_key_value"
PARSE = "file"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. update this to parse.
  2. update CDK to include parse / extract type. parse or extract to have its dedicated folder.
  3. If type does not exist, in CDK raise exception.

Comment on lines 488 to 495
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)
Copy link
Collaborator

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async_parse_....ipynb

Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async_parse_docx.ipynb

Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parse_png.ipynb

Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parser_pdf.ipynb

Copy link
Collaborator

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.

Copy link
Collaborator

@lingjiekong lingjiekong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Sdddell Sdddell closed this Nov 15, 2024
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

Successfully merging this pull request may close these issues.

2 participants